File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ export namespace NodeLoaderHooksAPI2 {
80
80
format : NodeLoaderHooksFormat ;
81
81
source : string | Buffer | undefined ;
82
82
} > ;
83
+ export type NodeImportConditions = unknown ;
84
+ export interface NodeImportAssertions {
85
+ type ?: 'json' ;
86
+ }
83
87
}
84
88
85
89
export type NodeLoaderHooksFormat =
@@ -90,11 +94,6 @@ export type NodeLoaderHooksFormat =
90
94
| 'module'
91
95
| 'wasm' ;
92
96
93
- export type NodeImportConditions = unknown ;
94
- export interface NodeImportAssertions {
95
- type ?: 'json' ;
96
- }
97
-
98
97
/** @internal */
99
98
export function registerAndCreateEsmHooks ( opts ?: RegisterOptions ) {
100
99
// Automatically performs registration just like `-r ts-node/register`
@@ -173,7 +172,7 @@ export function createEsmHooks(tsNodeService: Service) {
173
172
url : string ,
174
173
context : {
175
174
format : NodeLoaderHooksFormat | null | undefined ;
176
- importAssertions ?: NodeImportAssertions ;
175
+ importAssertions ?: NodeLoaderHooksAPI2 . NodeImportAssertions ;
177
176
} ,
178
177
defaultLoad : typeof load
179
178
) : Promise < {
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ export interface CreateOptions {
371
371
tsTrace ?: ( str : string ) => void ;
372
372
}
373
373
374
- type ModuleTypes = Record < string , 'cjs' | 'esm' | 'package' > ;
374
+ export type ModuleTypes = Record < string , 'cjs' | 'esm' | 'package' > ;
375
375
376
376
/** @internal */
377
377
export interface OptionBasePaths {
You can’t perform that action at this time.
0 commit comments