11 lines
197 B
TypeScript
11 lines
197 B
TypeScript
//// [specializedSignatureInInterface.ts]
|
|
interface A {
|
|
(key:string):void;
|
|
}
|
|
|
|
interface B extends A {
|
|
(key:'foo'):string;
|
|
(key:'bar'):string;
|
|
}
|
|
|
|
//// [specializedSignatureInInterface.js]
|