intl-format-cache

  • Version 4.3.1
  • Published
  • 12.6 kB
  • No dependencies
  • BSD-3-Clause license

Install

npm i intl-format-cache
yarn add intl-format-cache
pnpm add intl-format-cache

Overview

A memoizer factory for Intl format constructors.

Index

Variables

variable memoizeFormatConstructor

const memoizeFormatConstructor: MemoizeFormatConstructorFn;

    Interfaces

    interface MemoizeFormatConstructorFn

    interface MemoizeFormatConstructorFn {}

      call signature

      <
      T extends {
      new (...args: any[]): any;
      }
      >(
      constructor: T,
      cache?: Record<string, CacheValue>
      ): (...args: ConstructorParameters<T>) => any;

        Type Aliases

        type CacheValue

        type CacheValue = Intl.NumberFormat | Intl.DateTimeFormat | Intl.PluralRules | any;

          Package Files (1)

          Dependencies (0)

          No dependencies.

          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/intl-format-cache.

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