2.1.4 • Published 2 years ago

@types/pseudo-localization v2.1.4

Weekly downloads
24
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/pseudo-localization

Summary

This package contains type definitions for pseudo-localization (https://github.com/tryggvigy/pseudo-localization#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pseudo-localization.

index.d.ts

// Type definitions for pseudo-localization 2.1
// Project: https://github.com/tryggvigy/pseudo-localization#readme
// Definitions by: Jonathan Hensley <https://github.com/jhensley>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.5

export namespace PseudoLocalization {
    interface Options {
        blacklistedNodeNames?: string[] | undefined;
        strategy?: 'accented' | 'bidi' | undefined;
    }

    type Localize = (inputString: string, options?: Omit<Options, 'blacklistedNodeNames'>) => string;
    type Start = (options?: Options) => void;
    type Stop = () => void;
}

export const localize: PseudoLocalization.Localize;
export const start: PseudoLocalization.Start;
export const stop: PseudoLocalization.Stop;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:58 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jonathan Hensley.

2.1.2

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.1

4 years ago

2.1.0

5 years ago