File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
- import TSNode from "ts-node" ;
2
1
import ts from "typescript" ;
2
+ export { default as register } from "./register" ;
3
3
4
4
/* ****************************************************************************************************************** *
5
5
* Hardcoded declarations file for npm package
@@ -20,8 +20,6 @@ export interface TransformerExtras {
20
20
ts : typeof ts ;
21
21
}
22
22
23
- export function register ( ) : TSNode . RegisterOptions | undefined ;
24
-
25
23
export default function transformer (
26
24
program ?: ts . Program ,
27
25
pluginConfig ?: TsTransformPathsConfig ,
Original file line number Diff line number Diff line change
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 ;
You can’t perform that action at this time.
0 commit comments