swc/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionKeywordProp.ts

16 lines
264 B
TypeScript
Raw Normal View History

// @allowJs: true
// @checkJs: true
// @target: es5
// @outDir: ./out
// @declaration: true
// @filename: source.js
function foo() {}
foo.null = true;
function bar() {}
bar.async = true;
bar.normal = false;
function baz() {}
baz.class = true;
baz.normal = false;