mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
8 lines
160 B
JavaScript
8 lines
160 B
JavaScript
declare class Foo {
|
|
bar(x: 'hmm'): number;
|
|
bar(x: string): string;
|
|
}
|
|
var foo = new Foo;
|
|
(foo.bar('hmm'): number); // OK
|
|
(foo.bar('hmmm'): number); // error
|