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

@types/i18n-js

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/i18n-js - npm Package Compare versions

Comparing version 3.0.3 to 3.8.0

9

i18n-js/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for i18n-js 3.0
// Type definitions for i18n-js 3.8
// Project: https://github.com/fnando/i18n-js

@@ -43,7 +43,9 @@ // Definitions by: Yuya Tanaka <https://github.com/ypresto>

type Message = string | object | ((scope: Scope) => string | object);
interface TranslateOptions extends InterpolateOptions {
scope?: Scope;
message?: string;
defaults?: Array<{ message: string } | { scope: Scope }>;
defaultValue?: string;
defaults?: Array<{ message: Message } | { scope: Scope }>;
defaultValue?: Message;
}

@@ -80,2 +82,3 @@ function translate(scope: Scope, options?: TranslateOptions): string;

format?: string;
scope?: Scope;
}

@@ -82,0 +85,0 @@ function toHumanSize(num: number, options?: ToHumanSizeOptions): string;

{
"name": "@types/i18n-js",
"version": "3.0.3",
"version": "3.8.0",
"description": "TypeScript definitions for i18n-js",

@@ -22,4 +22,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "5c7b460cf7cbf83ea07067d7a89366c90ead555037652057d7ec470cca57b41e",
"typeScriptVersion": "2.9"
"typesPublisherContentHash": "323630ba510cfdffbdc50421b718c3c027ef2634ba6850ef599330589009957e",
"typeScriptVersion": "3.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 07 May 2020 05:33:56 GMT
* Last updated: Sun, 10 Jan 2021 09:00:47 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `I18n`

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