@types/i18n-js
Advanced tools
Comparing version 3.0.3 to 3.8.0
@@ -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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5835
69