Socket
Socket
Sign inDemoInstall

@formatjs/intl

Package Overview
Dependencies
Maintainers
3
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl - npm Package Compare versions

Comparing version 1.4.5 to 1.4.6

4

lib/src/create-intl.d.ts
import { OptionalIntlConfig, IntlCache, IntlShape } from './types';
export interface CreateIntlFn<T = string> {
(config: OptionalIntlConfig<T>, cache?: IntlCache): IntlShape<T>;
export interface CreateIntlFn<T = string, C extends OptionalIntlConfig<T> = OptionalIntlConfig<T>, S extends IntlShape<T> = IntlShape<T>> {
(config: C, cache?: IntlCache): S;
}

@@ -5,0 +5,0 @@ /**

{
"name": "@formatjs/intl",
"version": "1.4.5",
"version": "1.4.6",
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.",

@@ -5,0 +5,0 @@ "keywords": [

import { OptionalIntlConfig, IntlCache, IntlShape } from './types';
export interface CreateIntlFn<T = string> {
(config: OptionalIntlConfig<T>, cache?: IntlCache): IntlShape<T>;
export interface CreateIntlFn<T = string, C extends OptionalIntlConfig<T> = OptionalIntlConfig<T>, S extends IntlShape<T> = IntlShape<T>> {
(config: C, cache?: IntlCache): S;
}

@@ -5,0 +5,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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