#Select a deeply nested value's type in a partial object using conditional types

2 messages · Page 1 of 1 (latest)

hybrid jetty
tropic topazBOT
#
jgoux#5970

Preview:```ts
type TableFilter =
| "public.user"
| "public.foo"
| "public.bar"
| "public."
| "secret.dont_look"
| "secret.
"
type SchemaFilter = "public" | "secret"

type ExcludeConfig = {
data?: TableFilter[]
structure?: {
tables?: TableFilter[]
schemas?: SchemaFilter[]
...```