mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
44 lines
905 B
TypeScript
44 lines
905 B
TypeScript
//// [tests/cases/compiler/declarationEmitFunctionKeywordProp.ts] ////
|
|
|
|
//// [declarationEmitFunctionKeywordProp.ts]
|
|
function foo() {}
|
|
foo.null = true;
|
|
|
|
function bar() {}
|
|
bar.async = true;
|
|
bar.normal = false;
|
|
|
|
function baz() {}
|
|
baz.class = true;
|
|
baz.normal = false;
|
|
|
|
//// [declarationEmitFunctionKeywordProp.js]
|
|
"use strict";
|
|
function foo() { }
|
|
foo.null = true;
|
|
function bar() { }
|
|
bar.async = true;
|
|
bar.normal = false;
|
|
function baz() { }
|
|
baz.class = true;
|
|
baz.normal = false;
|
|
|
|
|
|
//// [declarationEmitFunctionKeywordProp.d.ts]
|
|
declare function foo(): void;
|
|
declare namespace foo {
|
|
var _a: boolean;
|
|
export { _a as null };
|
|
}
|
|
declare function bar(): void;
|
|
declare namespace bar {
|
|
var async: boolean;
|
|
var normal: boolean;
|
|
}
|
|
declare function baz(): void;
|
|
declare namespace baz {
|
|
var _b: boolean;
|
|
export { _b as class };
|
|
export var normal: boolean;
|
|
}
|