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