Skip to content

Commit 37a24c6

Browse files
committed
update types for register.initialized
1 parent 7b34145 commit 37a24c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

types/index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import TSNode from "ts-node";
22
import ts from "typescript";
3+
import type { REGISTER_INSTANCE } from "ts-node";
34

45
/* ****************************************************************************************************************** *
56
* Hardcoded declarations file for npm package
@@ -22,6 +23,14 @@ export interface TransformerExtras {
2223

2324
export function register(): TSNode.RegisterOptions | undefined;
2425

26+
export declare namespace register {
27+
function initialize(): {
28+
tsNode: typeof TSNode;
29+
instanceSymbol: typeof REGISTER_INSTANCE;
30+
tsNodeInstance: TSNode.Service;
31+
};
32+
}
33+
2534
export default function transformer(
2635
program?: ts.Program,
2736
pluginConfig?: TsTransformPathsConfig,

0 commit comments

Comments
 (0)