Function getModule

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all?: false;
          raw?: false;
      }

      Options

      • Optional all?: false

        Return all matching modules instead of just the first

      • Optional raw?: false

        Return the raw module instead of the exports

    Returns T | undefined

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all: true;
          raw?: false;
      }

      Options

      • all: true

        Return all matching modules instead of just the first

      • Optional raw?: false

        Return the raw module instead of the exports

    Returns T[]

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all?: false;
          raw: true;
      }

      Options

      • Optional all?: false

        Return all matching modules instead of just the first

      • raw: true

        Return the raw module instead of the exports

    Returns RawModule<T> | undefined

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all: true;
          raw: true;
      }

      Options

      • all: true

        Return all matching modules instead of just the first

      • raw: true

        Return the raw module instead of the exports

    Returns RawModule<T>[]

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all?: false;
          raw?: boolean;
      }

      Options

      • Optional all?: false

        Return all matching modules instead of just the first

      • Optional raw?: boolean

        Return the raw module instead of the exports

    Returns T | RawModule<T> | undefined

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all: true;
          raw?: boolean;
      }

      Options

      • all: true

        Return all matching modules instead of just the first

      • Optional raw?: boolean

        Return the raw module instead of the exports

    Returns T[] | RawModule<T>[]

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all?: boolean;
          raw?: false;
      }

      Options

      • Optional all?: boolean

        Return all matching modules instead of just the first

      • Optional raw?: false

        Return the raw module instead of the exports

    Returns T | T[] | undefined

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all?: boolean;
          raw: true;
      }

      Options

      • Optional all?: boolean

        Return all matching modules instead of just the first

      • raw: true

        Return the raw module instead of the exports

    Returns RawModule<T> | RawModule<T>[] | undefined

    See

    filters

  • Find a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: {
          all?: boolean;
          raw?: boolean;
      }

      Options

      • Optional all?: boolean

        Return all matching modules instead of just the first

      • Optional raw?: boolean

        Return the raw module instead of the exports

    Returns T | T[] | RawModule<T> | RawModule<T>[] | undefined

    See

    filters

Generated using TypeDoc