Skip to content

Commit

Permalink
Adds externs for Angular Material's $mdColors service, and $mdColors.…
Browse files Browse the repository at this point in the history
…applyThemeColors and $mdColors.getThemeColor functions.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=160335149
  • Loading branch information
corndag authored and brad4d committed Jun 28, 2017
1 parent 8da5408 commit b93ccd3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contrib/externs/angular-material-1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,24 @@ md.$mdThemingProvider.Theme.prototype.warnPalette =
*/
md.$mdThemingProvider.Theme.prototype.dark = function(opt_isDark) {};

/******************************************************************************
* $mdColors Service
*****************************************************************************/

/** @interface */
md.$mdColors = function() {};

/**
* @param {!angular.JQLite} element
* @param {?Object} colorExpression
*/
md.$mdColors.prototype.applyThemeColors = function(element, colorExpression) {};

/**
* @param {string} expression
* @return {string}
*/
md.$mdColors.prototype.getThemeColor = function(expression) {};

/******************************************************************************
* $mdIcon Service
Expand Down
18 changes: 18 additions & 0 deletions contrib/externs/angular-material.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,24 @@ md.$mdThemingProvider.Theme.prototype.warnPalette =
*/
md.$mdThemingProvider.Theme.prototype.dark = function(opt_isDark) {};

/******************************************************************************
* $mdColors Service
*****************************************************************************/

/** @interface */
md.$mdColors = function() {};

/**
* @param {!angular.JQLite} element
* @param {?Object} colorExpression
*/
md.$mdColors.prototype.applyThemeColors = function(element, colorExpression) {};

/**
* @param {string} expression
* @return {string}
*/
md.$mdColors.prototype.getThemeColor = function(expression) {};

/******************************************************************************
* $mdIcon Service
Expand Down

0 comments on commit b93ccd3

Please sign in to comment.