TypeScript/tests/baselines/reference/specializedSignatureWithOptional.types
2015-04-15 16:44:20 -07:00

10 lines
308 B
Plaintext

=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureWithOptional.ts ===
declare function f(x?: "hi"): void;
>f : { (x?: "hi"): void; (x?: string): void; }
>x : "hi"
declare function f(x?: string): void;
>f : { (x?: "hi"): void; (x?: string): void; }
>x : string