|
| 1 | +// noinspection BadExpressionStatementJS,JSUnusedGlobalSymbols,SpellCheckingInspection,ES6ConvertVarToLetConst,JSCommentMatchesSignature |
| 2 | + |
| 3 | +/* |
| 4 | + * Copyright 2023 Red Hat |
| 5 | + * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + * you may not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + */ |
| 18 | + |
| 19 | +/** |
| 20 | + * @fileoverview Missing Intl externs not yet in https://github.com/google/closure-compiler/blob/master/externs/browser/intl.js |
| 21 | + * @externs |
| 22 | + */ |
| 23 | + |
| 24 | +/** |
| 25 | + * @constructor |
| 26 | + * @param {string|Array<string>=} locales |
| 27 | + * @param {{ |
| 28 | + * localeMatcher: (string|undefined), |
| 29 | + * numberingSystem: (string|undefined), |
| 30 | + * style: (string|undefined), |
| 31 | + * years: (string|undefined), |
| 32 | + * yearsDisplay: (string|undefined), |
| 33 | + * months: (string|undefined), |
| 34 | + * monthsDisplay: (string|undefined), |
| 35 | + * weeks: (string|undefined), |
| 36 | + * weeksDisplay: (string|undefined), |
| 37 | + * days: (string|undefined), |
| 38 | + * daysDisplay: (string|undefined), |
| 39 | + * hours: (string|undefined), |
| 40 | + * hoursDisplay: (string|undefined), |
| 41 | + * minutes: (string|undefined), |
| 42 | + * minutesDisplay: (string|undefined), |
| 43 | + * seconds: (string|undefined), |
| 44 | + * secondsDisplay: (string|undefined), |
| 45 | + * milliseconds: (string|undefined), |
| 46 | + * millisecondsDisplay: (string|undefined), |
| 47 | + * microseconds: (string|undefined), |
| 48 | + * microsecondsDisplay: (string|undefined), |
| 49 | + * nanoseconds: (string|undefined), |
| 50 | + * nanosecondsDisplay: (string|undefined), |
| 51 | + * fractionDigits: (number|undefined) |
| 52 | + * }=} |
| 53 | + * options |
| 54 | + */ |
| 55 | +Intl.DurationFormat = function (locales, options) { |
| 56 | +}; |
| 57 | + |
| 58 | +/** |
| 59 | + * @param {Array<string>} locales |
| 60 | + * @param {{localeMatcher: (string|undefined)}=} options |
| 61 | + * @return {Array<string>} |
| 62 | + */ |
| 63 | +Intl.DurationFormat.supportedLocalesOf = function(locales, options) {}; |
| 64 | + |
| 65 | +/** |
| 66 | + * @param {{ |
| 67 | + * years: (number|undefined), |
| 68 | + * months: (number|undefined), |
| 69 | + * weeks: (number|undefined), |
| 70 | + * days: (number|undefined), |
| 71 | + * hours: (number|undefined), |
| 72 | + * minutes: (number|undefined), |
| 73 | + * seconds: (number|undefined), |
| 74 | + * milliseconds: (number|undefined), |
| 75 | + * microseconds: (number|undefined), |
| 76 | + * nanoseconds: (number|undefined), |
| 77 | + * }=} |
| 78 | + * duration |
| 79 | + * @return {string} |
| 80 | + */ |
| 81 | +Intl.DurationFormat.prototype.format = function(num) {}; |
| 82 | + |
| 83 | +/** |
| 84 | + * @param {number} num |
| 85 | + * @return {!Array<{type: string, value: string}>} |
| 86 | + * @see http://www.ecma-international.org/ecma-402/#sec-intl.numberformat.prototype.formattoparts |
| 87 | + */ |
| 88 | +Intl.DurationFormat.prototype.formatToParts = function(num) {}; |
| 89 | + |
| 90 | +/** |
| 91 | + * @return {{locale: string, numberingSystem: string, style: string, fractionDigits: number }} |
| 92 | + */ |
| 93 | +Intl.DurationFormat.prototype.resolvedOptions = function() {}; |
0 commit comments