2016-06-11 09:12:04 +02:00
|
|
|
// @importHelpers: true
|
|
|
|
// @target: es5
|
|
|
|
// @module: commonjs
|
2016-06-15 03:23:31 +02:00
|
|
|
// @moduleResolution: classic
|
2016-06-11 09:12:04 +02:00
|
|
|
// @experimentalDecorators: true
|
|
|
|
// @emitDecoratorMetadata: true
|
|
|
|
// @filename: external.ts
|
|
|
|
export class A { }
|
|
|
|
export class B extends A { }
|
|
|
|
|
|
|
|
declare var dec: any;
|
|
|
|
|
|
|
|
@dec
|
|
|
|
class C {
|
|
|
|
method(@dec x: number) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-26 03:36:07 +02:00
|
|
|
function id<T>(x: T) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const result = id`hello world`;
|
|
|
|
|
2016-06-11 09:12:04 +02:00
|
|
|
// @filename: script.ts
|
|
|
|
class A { }
|
|
|
|
class B extends A { }
|
|
|
|
|
|
|
|
declare var dec: any;
|
|
|
|
|
|
|
|
@dec
|
|
|
|
class C {
|
|
|
|
method(@dec x: number) {
|
|
|
|
}
|
2016-06-15 03:23:31 +02:00
|
|
|
}
|
|
|
|
|
2017-09-26 03:36:07 +02:00
|
|
|
function id<T>(x: T) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
const result = id`hello world`;
|
|
|
|
|
2016-06-15 03:23:31 +02:00
|
|
|
// @filename: tslib.d.ts
|
|
|
|
export declare function __extends(d: Function, b: Function): void;
|
|
|
|
export declare function __assign(t: any, ...sources: any[]): any;
|
|
|
|
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
|
|
|
|
export declare function __param(paramIndex: number, decorator: Function): Function;
|
|
|
|
export declare function __metadata(metadataKey: any, metadataValue: any): Function;
|
|
|
|
export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
|
2017-09-26 03:36:07 +02:00
|
|
|
export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
|