first commit

This commit is contained in:
2025-06-17 11:39:51 +08:00
commit 4d913c0007
12754 changed files with 1480633 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import { Dict } from "../typing";
export declare function camelCaseKeys<T = Dict>(target: unknown): T;

View File

@@ -0,0 +1,3 @@
import { Dict, Scope, TranslateOptions } from "../typing";
import { I18n } from "../I18n";
export declare function createTranslationOptions(i18n: I18n, scope: Scope, options: Dict): TranslateOptions[];

View File

@@ -0,0 +1,3 @@
import { BigNumber } from "bignumber.js";
import { RoundingMode } from "../typing";
export declare function expandRoundMode(roundMode: RoundingMode): BigNumber.RoundingMode;

2
node_modules/i18n-js/typings/helpers/flatMap.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import { Dict } from "../../index.d";
export declare function flatMap(target: Dict): string[];

View File

@@ -0,0 +1,2 @@
import { FormatNumberOptions, Numeric } from "../typing";
export declare function formatNumber(input: Numeric, options: FormatNumberOptions): string;

View File

@@ -0,0 +1,3 @@
import { Dict, Scope } from "../typing";
import { I18n } from "../I18n";
export declare function getFullScope(i18n: I18n, scope: Scope, options: Dict): string;

17
node_modules/i18n-js/typings/helpers/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
export { camelCaseKeys } from "./camelCaseKeys";
export { createTranslationOptions } from "./createTranslationOptions";
export { expandRoundMode } from "./expandRoundMode";
export { formatNumber } from "./formatNumber";
export { getFullScope } from "./getFullScope";
export { inferType } from "./inferType";
export { interpolate } from "./interpolate";
export { isSet } from "./isSet";
export { lookup } from "./lookup";
export { numberToDelimited } from "./numberToDelimited";
export { numberToHuman } from "./numberToHuman";
export { numberToHumanSize } from "./numberToHumanSize";
export { parseDate } from "./parseDate";
export { pluralize } from "./pluralize";
export { roundNumber } from "./roundNumber";
export { strftime } from "./strftime";
export { timeAgoInWords } from "./timeAgoInWords";

1
node_modules/i18n-js/typings/helpers/inferType.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export declare function inferType(instance: unknown): string;

View File

@@ -0,0 +1,3 @@
import { TranslateOptions } from "../typing";
import { I18n } from "../I18n";
export declare function interpolate(i18n: I18n, message: string, options: TranslateOptions): string;

1
node_modules/i18n-js/typings/helpers/isSet.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export declare function isSet(value: unknown): boolean;

3
node_modules/i18n-js/typings/helpers/lookup.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import { Dict, Scope } from "../typing";
import { I18n } from "../I18n";
export declare function lookup(i18n: I18n, scope: Scope, options?: Dict): any;

View File

@@ -0,0 +1,2 @@
import { Numeric, NumberToDelimitedOptions } from "../typing";
export declare function numberToDelimited(input: Numeric, options: NumberToDelimitedOptions): string;

View File

@@ -0,0 +1,3 @@
import { I18n } from "../I18n";
import { Numeric, NumberToHumanOptions } from "../typing";
export declare function numberToHuman(i18n: I18n, input: Numeric, options: NumberToHumanOptions): string;

View File

@@ -0,0 +1,3 @@
import { I18n } from "../I18n";
import { Numeric, NumberToHumanSizeOptions } from "../typing";
export declare function numberToHumanSize(i18n: I18n, input: Numeric, options: NumberToHumanSizeOptions): string;

4
node_modules/i18n-js/typings/helpers/object.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import { AnyObject } from "../../index.d";
export declare type KeyModifier = (key: string) => string;
export declare function dump(object: AnyObject): AnyObject;
export declare function load(object: AnyObject): AnyObject;

2
node_modules/i18n-js/typings/helpers/parseDate.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import { DateTime } from "../typing";
export declare function parseDate(input: DateTime): Date;

9
node_modules/i18n-js/typings/helpers/pluralize.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import { Scope, TranslateOptions } from "../typing";
import { I18n } from "../I18n";
export declare function pluralize({ i18n, count, scope, options, baseScope, }: {
i18n: I18n;
count: number;
scope: Scope;
options: TranslateOptions;
baseScope: string;
}): string;

View File

@@ -0,0 +1,2 @@
import { Dict } from "../typing";
export declare function propertyFlatList(target: Dict): string[];

View File

@@ -0,0 +1,9 @@
import { BigNumber } from "bignumber.js";
import { RoundingMode } from "../typing";
type RoundingOptions = {
roundMode: RoundingMode;
precision: number | null;
significant: boolean;
};
export declare function roundNumber(numeric: BigNumber, options: RoundingOptions): string;
export {};

2
node_modules/i18n-js/typings/helpers/strftime.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import { StrftimeOptions } from "../typing";
export declare function strftime(date: Date, format: string, options?: Partial<StrftimeOptions>): string;

View File

@@ -0,0 +1,3 @@
import { I18n } from "../I18n";
import { DateTime, TimeAgoInWordsOptions } from "../typing";
export declare function timeAgoInWords(i18n: I18n, fromTime: DateTime, toTime: DateTime, options?: TimeAgoInWordsOptions): string;

1
node_modules/i18n-js/typings/helpers/toFixed.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export declare function toFixed(numeric: number, precision: number): string;

2
node_modules/i18n-js/typings/helpers/toNumber.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import { ToNumberOptions } from "../../index.d";
export declare function toNumber(numeric: number, options: ToNumberOptions): string;