2014-07-13 01:04:16 +02:00
|
|
|
// @target: ES5
|
|
|
|
// @declaration: true
|
2015-08-22 04:17:09 +02:00
|
|
|
// @removeComments: false
|
2014-07-13 01:04:16 +02:00
|
|
|
// @module: commonjs
|
|
|
|
|
|
|
|
// @Filename: declFileCallSignatures_0.ts
|
|
|
|
export interface ICallSignature {
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithParameters {
|
|
|
|
/** This is comment for function signature*/
|
|
|
|
(/** this is comment about a*/a: string,
|
|
|
|
/** this is comment for b*/
|
|
|
|
b: number): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithRestParameters {
|
|
|
|
(a: string, ...rests: string[]): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithOverloads {
|
|
|
|
(a: string): string;
|
|
|
|
(a: number): number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithTypeParameters<T> {
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(a: T): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithOwnTypeParametes {
|
|
|
|
<T extends ICallSignature>(a: T): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: declFileCallSignatures_1.ts
|
|
|
|
interface IGlobalCallSignature {
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithParameters {
|
|
|
|
/** This is comment for function signature*/
|
|
|
|
(/** this is comment about a*/a: string,
|
|
|
|
/** this is comment for b*/
|
|
|
|
b: number): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithRestParameters {
|
|
|
|
|
|
|
|
(a: string, ...rests: string[]): string;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithOverloads {
|
|
|
|
(a: string): string;
|
|
|
|
(a: number): number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithTypeParameters<T> {
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(a: T): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithOwnTypeParametes {
|
|
|
|
<T extends IGlobalCallSignature>(a: T): string;
|
|
|
|
}
|