Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace NodeLoaderHooksAPI2

Index

Type aliases

LoadHook

LoadHook: (url: string, context: { format: NodeLoaderHooksFormat | null | undefined; importAssertions?: NodeImportAssertions }, defaultLoad: NodeLoaderHooksAPI2["load"]) => Promise<{ format: NodeLoaderHooksFormat; shortCircuit?: boolean; source: string | Buffer | undefined }>

Type declaration

NodeImportConditions

NodeImportConditions: unknown

ResolveHook

ResolveHook: (specifier: string, context: { conditions?: NodeImportConditions; importAssertions?: NodeImportAssertions; parentURL: string }, defaultResolve: NodeLoaderHooksAPI2.ResolveHook) => Promise<{ format?: NodeLoaderHooksFormat; shortCircuit?: boolean; url: string }>

Type declaration

Generated using TypeDoc