MCPcopy Create free account
hub / github.com/basarat/typescript-book / CallMeWithNewToGetString

Interface CallMeWithNewToGetString

code/types/callable.ts:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 = (foo) => foo.toString();
38
39 interface CallMeWithNewToGetString {
40 new(): string
41 }
42 // Usage
43 declare const Foo: CallMeWithNewToGetString;
44 const bar = new Foo(); // bar is inferred to be of type string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected