mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
608 B
TypeScript
29 lines
608 B
TypeScript
//// [tests/cases/compiler/declarationEmitTripleSlashReferenceAmbientModule.ts] ////
|
|
|
|
//// [index.d.ts]
|
|
declare module "url" {
|
|
export class Url {}
|
|
export function parse(): Url;
|
|
}
|
|
|
|
//// [usage1.ts]
|
|
export { parse } from "url";
|
|
|
|
//// [usage2.ts]
|
|
import { parse } from "url";
|
|
export const thing: import("url").Url = parse();
|
|
|
|
//// [usage3.ts]
|
|
import { parse } from "url";
|
|
export const thing = parse();
|
|
|
|
|
|
|
|
|
|
//// [usage1.d.ts]
|
|
export { parse } from "url";
|
|
//// [usage2.d.ts]
|
|
export declare const thing: import("url").Url;
|
|
//// [usage3.d.ts]
|
|
export declare const thing: import("url").Url;
|