🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@types/langs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/langs

TypeScript definitions for langs

2.0.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Weekly downloads
7.4K
1.13%
Maintainers
1
Weekly downloads
 
Created
Source

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

declare namespace langs {
    type Type = 1 | 2 | 3 | "1" | "2" | "2T" | "2B" | "3" | "name" | "local";

    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: Exclude<Type, "name" | "local">) => string[];
        names: (local?: boolean) => string[];
        where: (type: Type, val: string) => Language | undefined;
    }
}

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

Additional Details

  • Last updated: Wed, 07 Feb 2024 06:35:28 GMT
  • Dependencies: none

Credits

These definitions were written by Orgad Shaneh.

FAQs

Package last updated on 07 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts