TypeScript/tests/baselines/reference/specializedSignatureWithOptional.types
2014-09-05 18:44:49 -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