adrianbrowning / prisma-ts-select

A TypeSafe primsa extension allowing more fine grain control of selects
MIT License
2 stars 0 forks source link

Tests, type check object, union of types #13

Open adrianbrowning opened 4 months ago

adrianbrowning commented 4 months ago

//should pass
Expect<Equal<typeof result, Array<{id: number; email: string; name: string | null}>>>

//should fail

Expect<Equal<typeof result, Array<{id: number; email: string; name: string}>>>
Expect<Equal<typeof result, Array<{id: number; email: string; name: null}>>>