Search
Preparing search index...
The search index is not available
ts-node
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
ts-node
NodeLoaderHooksAPI2
Namespace NodeLoaderHooksAPI2
Index
Interfaces
Node
Import
Assertions
Type aliases
Load
Hook
Node
Import
Conditions
Resolve
Hook
Type aliases
Load
Hook
Load
Hook
:
(
url
:
string
, context
:
{
format
:
NodeLoaderHooksFormat
|
null
|
undefined
;
importAssertions
?:
NodeImportAssertions
}
, defaultLoad
:
NodeLoaderHooksAPI2
[
"load"
]
)
=>
Promise
<
{
format
:
NodeLoaderHooksFormat
;
shortCircuit
?:
boolean
;
source
:
string
|
Buffer
|
undefined
}
>
Type declaration
(
url
:
string
, context
:
{
format
:
NodeLoaderHooksFormat
|
null
|
undefined
;
importAssertions
?:
NodeImportAssertions
}
, defaultLoad
:
NodeLoaderHooksAPI2
[
"load"
]
)
:
Promise
<
{
format
:
NodeLoaderHooksFormat
;
shortCircuit
?:
boolean
;
source
:
string
|
Buffer
|
undefined
}
>
Parameters
url:
string
context:
{
format
:
NodeLoaderHooksFormat
|
null
|
undefined
;
importAssertions
?:
NodeImportAssertions
}
format
:
NodeLoaderHooksFormat
|
null
|
undefined
Optional
import
Assertions
?:
NodeImportAssertions
defaultLoad:
NodeLoaderHooksAPI2
[
"load"
]
Returns
Promise
<
{
format
:
NodeLoaderHooksFormat
;
shortCircuit
?:
boolean
;
source
:
string
|
Buffer
|
undefined
}
>
Node
Import
Conditions
Node
Import
Conditions
:
unknown
Resolve
Hook
Resolve
Hook
:
(
specifier
:
string
, context
:
{
conditions
?:
NodeImportConditions
;
importAssertions
?:
NodeImportAssertions
;
parentURL
:
string
}
, defaultResolve
:
NodeLoaderHooksAPI2
.
ResolveHook
)
=>
Promise
<
{
format
?:
NodeLoaderHooksFormat
;
shortCircuit
?:
boolean
;
url
:
string
}
>
Type declaration
(
specifier
:
string
, context
:
{
conditions
?:
NodeImportConditions
;
importAssertions
?:
NodeImportAssertions
;
parentURL
:
string
}
, defaultResolve
:
NodeLoaderHooksAPI2
.
ResolveHook
)
:
Promise
<
{
format
?:
NodeLoaderHooksFormat
;
shortCircuit
?:
boolean
;
url
:
string
}
>
Parameters
specifier:
string
context:
{
conditions
?:
NodeImportConditions
;
importAssertions
?:
NodeImportAssertions
;
parentURL
:
string
}
Optional
conditions
?:
NodeImportConditions
Optional
import
Assertions
?:
NodeImportAssertions
parentURL
:
string
defaultResolve:
NodeLoaderHooksAPI2
.
ResolveHook
Returns
Promise
<
{
format
?:
NodeLoaderHooksFormat
;
shortCircuit
?:
boolean
;
url
:
string
}
>
Exports
Node
Loader
HooksAPI1
Node
Loader
HooksAPI2
TSCommon
Node
Import
Assertions
Load
Hook
Node
Import
Conditions
Resolve
Hook
Generated using
TypeDoc