Skip to content

@toolcog/node/loader

Toolcog Node.js adapter

Functions

load()

load(url, context, nextLoad): LoadFnOutput | Promise<LoadFnOutput>

Parameters

url: string

context: LoadHookContext

nextLoad

Returns

LoadFnOutput | Promise<LoadFnOutput>

Defined in

packages/adapters/node/loader/src/hooks.ts:184


resolve()

resolve(specifier, context, nextResolve): ResolveFnOutput | Promise<ResolveFnOutput>

Parameters

specifier: string

context: ResolveHookContext

nextResolve

Returns

ResolveFnOutput | Promise<ResolveFnOutput>

Defined in

packages/adapters/node/loader/src/hooks.ts:184