Skip to content

Commit cccdd78

Browse files
committed
update register types
1 parent 37a24c6 commit cccdd78

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

types/index.d.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import TSNode from "ts-node";
21
import ts from "typescript";
3-
import type { REGISTER_INSTANCE } from "ts-node";
2+
export { default as register } from "./register";
43

54
/* ****************************************************************************************************************** *
65
* Hardcoded declarations file for npm package
@@ -21,16 +20,6 @@ export interface TransformerExtras {
2120
ts: typeof ts;
2221
}
2322

24-
export function register(): TSNode.RegisterOptions | undefined;
25-
26-
export declare namespace register {
27-
function initialize(): {
28-
tsNode: typeof TSNode;
29-
instanceSymbol: typeof REGISTER_INSTANCE;
30-
tsNodeInstance: TSNode.Service;
31-
};
32-
}
33-
3423
export default function transformer(
3524
program?: ts.Program,
3625
pluginConfig?: TsTransformPathsConfig,

types/register.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import TSNode from "ts-node";
2+
import type { REGISTER_INSTANCE } from "ts-node";
3+
4+
export function register(): TSNode.RegisterOptions | undefined;
5+
6+
export declare namespace register {
7+
function initialize(): {
8+
tsNode: typeof TSNode;
9+
instanceSymbol: typeof REGISTER_INSTANCE;
10+
tsNodeInstance: TSNode.Service;
11+
};
12+
}
13+
14+
export default register;

0 commit comments

Comments
 (0)