Open sbdchd opened 3 years ago
// err declare const bar: string | undefined const foo = bar ?? undefined // err declare const bar: string | null | undefined const foo = bar ?? null // err declare const bar: string | null | undefined const foo = bar ?? undefined // err declare const bar: string | null const foo = bar ?? null // ok declare const bar: string | null const foo = bar ?? undefined // ok declare const bar: string | undefined const foo = bar ?? null