@types/loader-utils

  • Version 2.0.6
  • Published
  • 8.4 kB
  • 2 dependencies
  • MIT license

Install

npm i @types/loader-utils
yarn add @types/loader-utils
pnpm add @types/loader-utils

Overview

TypeScript definitions for loader-utils

Index

Functions

function getCurrentRequest

getCurrentRequest: (loaderContext: loader.LoaderContext) => string;

    function getHashDigest

    getHashDigest: (
    buffer: Buffer,
    hashType: HashType,
    digestType: DigestType,
    maxLength: number
    ) => string;
    • Parameter buffer

      Parameter hashType

      Parameter digestType

      Parameter maxLength

    function getOptions

    getOptions: (loaderContext: loader.LoaderContext) => Readonly<OptionObject>;

    function getRemainingRequest

    getRemainingRequest: (loaderContext: loader.LoaderContext) => string;

      function interpolateName

      interpolateName: (
      loaderContext: loader.LoaderContext,
      name: string,
      options?: any
      ) => string;

      function isUrlRequest

      isUrlRequest: (url: string, root?: string) => boolean;

        function parseQuery

        parseQuery: (optionString: string) => OptionObject;

        function parseString

        parseString: (str: string) => string;

          function stringifyRequest

          stringifyRequest: (
          loaderContext: loader.LoaderContext,
          resource: string
          ) => string;

          function urlToRequest

          urlToRequest: (url: string, root?: string) => string;

          Interfaces

          interface InterpolateOption

          interface InterpolateOption {}

            property content

            content?: string | Buffer | undefined;

              property context

              context?: string | undefined;

                property regExp

                regExp?: string | RegExp | undefined;

                  interface OptionObject

                  interface OptionObject {}

                    index signature

                    [key: string]: null | false | true | string;

                      Type Aliases

                      type DigestType

                      type DigestType =
                      | 'hex'
                      | 'base26'
                      | 'base32'
                      | 'base36'
                      | 'base49'
                      | 'base52'
                      | 'base58'
                      | 'base62'
                      | 'base64';

                        type HashType

                        type HashType = 'sha1' | 'md4' | 'md5' | 'sha256' | 'sha512';

                          type Readonly

                          type Readonly<T> = {
                          readonly [P in keyof T]: T[P];
                          };

                            Package Files (1)

                            Dependencies (2)

                            Dev Dependencies (0)

                            No dev dependencies.

                            Peer Dependencies (0)

                            No peer dependencies.

                            Badge

                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/loader-utils.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/loader-utils)
                            • HTML
                              <a href="https://www.jsdocs.io/package/@types/loader-utils"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>