TypeScript/tests/baselines/reference/specializedSignatureWithOptional.types

10 lines
632 B
Text
Raw Normal View History

=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureWithOptional.ts ===
declare function f(x?: "hi"): void;
>f : { (x?: "hi"): void; (x?: string): void; }, Symbol(f,Decl(specializedSignatureWithOptional.ts,0,0),Decl(specializedSignatureWithOptional.ts,0,35))
>x : "hi", Symbol(x,Decl(specializedSignatureWithOptional.ts,0,19))
declare function f(x?: string): void;
>f : { (x?: "hi"): void; (x?: string): void; }, Symbol(f,Decl(specializedSignatureWithOptional.ts,0,0),Decl(specializedSignatureWithOptional.ts,0,35))
>x : string, Symbol(x,Decl(specializedSignatureWithOptional.ts,1,19))