diff --git a/mw/language.d.ts b/mw/language.d.ts index 2ef8d9d..288a950 100644 --- a/mw/language.d.ts +++ b/mw/language.d.ts @@ -129,17 +129,6 @@ declare global { explicitPluralForms?: Record ): string; - /** - * Helper function to flip transformation tables. - * - * @param {...Object.} tables Transformation tables - * @returns {Object.} - * @see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.language-method-flipTransform - */ - function flipTransform>( - ...tables: T[] - ): FlipObject; - /** * Provides an alternative text depending on specified gender. * @@ -225,48 +214,6 @@ declare global { function setData(langCode: string, dataKey: string, value: any): void; function setData(langCode: string, dataKey: Record): void; - /** - * Apply numeric pattern to absolute value using options. Gives no - * consideration to local customs. - * - * Adapted from dojo/number library with thanks - * - * - * @private - * @param {number} value the number to be formatted, ignores sign - * @param {string} pattern the number portion of a pattern (e.g. `#,##0.00`) - * @param {Object} [options] If provided, all option keys must be present: - * @param {string} options.decimal The decimal separator. Defaults to: `'.'`. - * @param {string} options.group The group separator. Defaults to: `','`. - * @param {number|null} options.minimumGroupingDigits - * @returns {string} - */ - function commafyNumber( - value: number, - pattern: string, - options?: { decimal: string; group: string; minimumGroupingDigits: number | null } - ): string; - - /** - * Pad a string to guarantee that it is at least `size` length by - * filling with the character `ch` at either the start or end of the - * string. Pads at the start, by default. - * - * Example: Fill the string to length 10 with '+' characters on the right. - * - * ```js - * pad( 'blah', 10, '+', true ); // => 'blah++++++' - * ``` - * - * @private - * @param {string} text The string to pad - * @param {number} size The length to pad to - * @param {string} [ch='0'] Character to pad with - * @param {boolean} [end=false] Adds padding at the end if true, otherwise pads at start - * @returns {string} - */ - function pad(text: string, size: number, ch?: string, end?: boolean): string; - /** * Pads an array to a specific length by copying the last one element. * @@ -277,16 +224,6 @@ declare global { * @see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.language-method-preConvertPlural */ function preConvertPlural(forms: string[], count: number): string[]; - - /** - * Replicate a string 'n' times. - * - * @private - * @param {string} str The string to replicate - * @param {number} num Number of times to replicate the string - * @returns {string} - */ - function replicate(str: string, num: number): string; } } }