Skip to content

Plz support definition for typescript users #46

@webhacking

Description

@webhacking

I could not use it at all because of one of my compilation options
So I made it myself. I hope others don't have the same issues as me.

import { Locale } from 'locale';

export declare module 'locale' {
  interface Locale {
    code: string;
    language: string;
    country: string;
    normalized: string;
    score: number;
  }
  declare function Locales(language: string): Locale[];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions