prettier/tests/typescript_optional_type/complex.ts

3 lines
98 B
TypeScript

type T = [("a" | "b")?];
type TupleWithOptional = [number, (1 extends 2 ? string[] : number[])?];