mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
632 B
TypeScript
29 lines
632 B
TypeScript
//// [tests/cases/compiler/dtsEmitTripleSlashAvoidUnnecessaryResolutionMode.ts] ////
|
|
|
|
//// [package.json]
|
|
{
|
|
"name": "@types/node",
|
|
"version": "1.0.0",
|
|
"types": "index.d.ts"
|
|
}
|
|
|
|
//// [globals.d.ts]
|
|
declare namespace NodeJS {
|
|
interface ReadableStream {}
|
|
}
|
|
|
|
//// [index.d.ts]
|
|
/// <reference path="globals.d.ts" />
|
|
|
|
//// [app.mts]
|
|
/// <reference types="node" preserve="true" />
|
|
export async function drainStream(stream: NodeJS.ReadableStream): Promise<void> {
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [app.d.mts]
|
|
/// <reference types="node" preserve="true" />
|
|
export declare function drainStream(stream: NodeJS.ReadableStream): Promise<void>;
|