Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/node-gettext

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node-gettext - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

node-gettext/index.d.ts

@@ -11,3 +11,3 @@ // Type definitions for node-gettext 3.0

readonly domain: string;
constructor(options?: { debug?: boolean; sourceLocale?: string });
constructor(options?: { debug?: boolean | undefined; sourceLocale?: string | undefined });
addTranslations(locale: string, domain: string, translations: object): void;

@@ -14,0 +14,0 @@ dgettext(domain: string, msgid: string): string;

{
"name": "@types/node-gettext",
"version": "3.0.1",
"version": "3.0.2",
"description": "TypeScript definitions for node-gettext",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-gettext",
"license": "MIT",

@@ -22,4 +23,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "e555c8dd680a8a6fd43c4381ffcc26c992d50ff94950f0496f4eacfb9417fc90",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "27bcc1055c05d164ce3bbdde7f356ab858ef09db335ea123d6b651b70efd0898",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,38 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-gettext.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-gettext/index.d.ts)
````ts
// Type definitions for node-gettext 3.0
// Project: http://github.com/alexanderwallin/node-gettext
// Definitions by: Sameer K.C. <https://github.com/sameercaresu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export = GetText;
declare class GetText {
static getLanguageCode(locale: string): string;
readonly locale: string;
readonly domain: string;
constructor(options?: { debug?: boolean | undefined; sourceLocale?: string | undefined });
addTranslations(locale: string, domain: string, translations: object): void;
dgettext(domain: string, msgid: string): string;
dngettext(domain: string, msgid: string, msgidPlural: string, count: number): string;
dnpgettext(domain: string, msgctxt: string, msgid: string, msgidPlural: string, count: number): string;
dpgettext(domain: string, msgctxt: string, msgid: string): string;
emit(eventName: string, eventData: any): void;
getComment(domain: string, msgctxt: string, msgid: string): object | boolean;
gettext(msgid: string): string;
ngettext(msgid: string, msgidPlural: string, count: number): string;
npgettext(msgctxt: string, msgid: string, msgidPlural: string, count: number): string;
off(eventName: 'error', callback: (error: Error) => void): void;
on(eventName: 'error', callback: (error: Error) => void): void;
pgettext(msgctxt: string, msgid: string): string;
setLocale(locale: string): void;
setTextDomain(domain: string): void;
textdomain(domain: string): void;
warn(message: string): void;
}
````
### Additional Details
* Last updated: Fri, 17 Apr 2020 23:12:01 GMT
* Last updated: Thu, 08 Jul 2021 18:51:20 GMT
* Dependencies: none

@@ -14,0 +47,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc