
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@types/counterpart
Advanced tools
TypeScript definitions for counterpart
npm install --save @types/counterpart
This package contains type definitions for counterpart (https://github.com/martinandert/counterpart).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/counterpart.
type NotFoundHandler = (locale: string, key: string, fallback: string, scope: string) => void;
type LocaleChangeHandler = (newLocale: string, oldLocale: string) => void;
interface Counterpart {
(key: string | string[], options?: object): string;
translate(key: string | string[], options?: object): string;
setSeparator(value: string): string;
onTranslationNotFound(callback: NotFoundHandler): void;
offTranslationNotFound(callback: NotFoundHandler): void;
setMissingEntryGenerator(callback: (value: string) => void): void;
getLocale(): string;
setLocale(value: string): string;
onLocaleChange(callback: LocaleChangeHandler): void;
offLocaleChange(callback: LocaleChangeHandler): void;
setFallbackLocale(value: string | string[]): void;
registerTranslations(locale: string, data: object): void;
registerInterpolations(data: object): void;
setKeyTransformer(callback: (value: string, options: object) => string): string;
localize(date: Date, options: object): string;
Instance: Counterpart;
Translator: Counterpart;
}
declare var counterpart: Counterpart;
export = counterpart;
These definitions were written by santiagodoldan.
FAQs
TypeScript definitions for counterpart
We found that @types/counterpart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.