TypeScript-TmLanguage/tests/cases/Issue453.ts

11 строки
203 B
TypeScript

type Resolve = () => number;
class Test {
first(values: Map<string, Resolve>): number {
return values.has('a') ? values.get('a')!() : 0;
}
second(): string {
return 'foo';
}
}