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

use-intl

Package Overview
Dependencies
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-intl - npm Package Compare versions

Comparing version 4.0.0-beta-00a79d4 to 4.0.0-beta-9ea117c

8

dist/types/core/createTranslator.d.ts

@@ -8,9 +8,9 @@ import type { ReactNode } from 'react';

import type { MessageKeys, NamespaceKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.tsx';
import type { ICUArg, ICUDate, ICUNumber, MarkupTagsFunction, RichTagsFunction } from './TranslationValues.tsx';
import type { ICUArg, MarkupTagsFunction, RichTagsFunction } from './TranslationValues.tsx';
import { type Formatters, type IntlCache } from './formatters.tsx';
import type { Prettify } from './types.tsx';
type ICUArgsWithTags<MessageString extends string, TagsFn extends RichTagsFunction | MarkupTagsFunction = never> = ICUArgs<MessageString, {
ICUArgument: ICUArg;
ICUNumberArgument: ICUNumber;
ICUDateArgument: ICUDate;
ICUArgument: string | number | boolean | Date;
ICUNumberArgument: number;
ICUDateArgument: Date | number;
}> & ([TagsFn] extends [never] ? {} : ICUTags<MessageString, TagsFn>);

@@ -17,0 +17,0 @@ type OnlyOptional<T> = Partial<T> extends T ? true : false;

export type { default as AbstractIntlMessages } from './AbstractIntlMessages.tsx';
export type { TranslationValues, RichTranslationValues, MarkupTranslationValues, ICUArg, ICUNumber, ICUDate, RichTagsFunction, MarkupTagsFunction } from './TranslationValues.tsx';
export type { TranslationValues, ICUArg, RichTranslationValues, MarkupTranslationValues, RichTagsFunction, MarkupTagsFunction } from './TranslationValues.tsx';
export type { default as Formats } from './Formats.tsx';

@@ -4,0 +4,0 @@ export type { default as IntlConfig } from './IntlConfig.tsx';

import type { ReactNode } from 'react';
export type ICUArg = string | number | boolean | Date;
export type ICUNumber = number;
export type ICUDate = Date | number | string;
export type TranslationValues = Record<string, ICUArg>;

@@ -6,0 +4,0 @@ export type RichTagsFunction = (chunks: ReactNode) => ReactNode;

{
"name": "use-intl",
"version": "4.0.0-beta-00a79d4",
"version": "4.0.0-beta-9ea117c",
"sideEffects": false,

@@ -67,3 +67,3 @@ "author": "Jan Amann <jan@amann.work>",

},
"gitHead": "9c05cd576d214480f7459b2351f94cfa9e4aef85"
"gitHead": "6f3b777c6f396da1f3f948d78ea7f6dc065e81e2"
}
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