mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
632 B
Plaintext
17 lines
632 B
Plaintext
//// [tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts] ////
|
|
|
|
=== main.ts ===
|
|
import mod = require("./dir/native.node");
|
|
>mod : Symbol(mod, Decl(main.ts, 0, 0))
|
|
|
|
mod.doNativeThing("good");
|
|
>mod.doNativeThing : Symbol(mod.doNativeThing, Decl(native.d.node.ts, 0, 0))
|
|
>mod : Symbol(mod, Decl(main.ts, 0, 0))
|
|
>doNativeThing : Symbol(mod.doNativeThing, Decl(native.d.node.ts, 0, 0))
|
|
|
|
=== dir/native.d.node.ts ===
|
|
export function doNativeThing(flag: string): unknown;
|
|
>doNativeThing : Symbol(doNativeThing, Decl(native.d.node.ts, 0, 0))
|
|
>flag : Symbol(flag, Decl(native.d.node.ts, 0, 30))
|
|
|