Skip to content

Commit

Permalink
Add extern for Intl.DateTimeFormat.prototype.formatToParts.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=226498692
  • Loading branch information
jeffyuen authored and brad4d committed Dec 21, 2018
1 parent 2f8e058 commit 7937ec1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions externs/browser/intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ Intl.DateTimeFormat.supportedLocalesOf = function(locales, opt_options) {};
*/
Intl.DateTimeFormat.prototype.format = function(date) {};

/**
* @param {(!Date|number)=} date
* @return {Array<{type: string, value: string}>}
*/
Intl.DateTimeFormat.prototype.formatToParts = function(date) {};

/**
* @return {{locale: string, calendar: string, numberingSystem: string,
* timeZone: (string|undefined), weekday: (string|undefined),
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit 7937ec1

Please sign in to comment.