Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @kosko/require

Index

References

Variables

Functions

References

requireDefault

Re-exports requireDefault

resolve

Re-exports resolve

Variables

Const resolve

resolve: (id: string, opts?: _resolve.AsyncOpts) => Promise<string> = (promisify(_resolve) as any) as Resolve

Resolves path to the specified module. See resolve for more info.

Type declaration

    • (id: string, opts?: _resolve.AsyncOpts): Promise<string>
    • Parameters

      • id: string
      • Optional opts: _resolve.AsyncOpts

      Returns Promise<string>

Functions

requireDefault

  • requireDefault(id: string): any
  • Import default from ES modules.

    Parameters

    • id: string

      module name

    Returns any

Generated using TypeDoc