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

12 lines
280 B
TypeScript
Raw Normal View History

// @Filename: declarations.d.ts
declare module "jquery"
// Semicolon is optional
declare module "fs";
// @Filename: user.ts
///<reference path="declarations.d.ts"/>
import foo, {bar} from "jquery";
import * as baz from "fs";
import boom = require("jquery");
foo(bar, baz, boom);