2.0.5 • Published 1 year ago

@types/langs v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/langs

Summary

This package contains type definitions for langs (https://github.com/adlawson/langs.js#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/langs.

index.d.ts

// Type definitions for langs 2.0
// Project: https://github.com/adlawson/langs.js#readme
// Definitions by: Orgad Shaneh <https://github.com/orgads>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace langs {
    type Type = 1 | 2 | 3 | '1' | '2' | '2T' | '2B' | '3';

    interface Language {
        name: string;
        local: string;
        '1': string;
        '2': string;
        '2T': string;
        '2B': string;
        '3': string;
    }

    interface Langs {
        all: () => Language[];
        has: (type: Type, val: string) => boolean;
        codes: (type: Type) => string[];
        names: (local?: boolean) => string[];
        where: (type: Type, val: string) => Language | undefined;
    }
}

declare const langs: langs.Langs;
export = langs;

Additional Details

  • Last updated: Sat, 02 Oct 2021 23:01:19 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Orgad Shaneh.

2.0.5

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

4 years ago

2.0.0

4 years ago