15 lines
No EOL
245 B
TypeScript
15 lines
No EOL
245 B
TypeScript
// @module: commonjs
|
|
|
|
// @filename: f.d.ts
|
|
declare module "test" {
|
|
let x: number;
|
|
}
|
|
|
|
// @filename: f.ts
|
|
#!/usr/bin/env node
|
|
|
|
/// <reference path="f.d.ts"/>
|
|
|
|
declare function use(f: number): void;
|
|
import {x} from "test";
|
|
use(x); |