-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4876 from Polymer/clean-up-externs
Clean up closure externs
- Loading branch information
Showing
8 changed files
with
1,557 additions
and
2,781 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
/** | ||
* @fileoverview Internal shared types for Polymer | ||
* | ||
* @license | ||
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved. | ||
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
* Code distributed by Google as part of the polymer project is also | ||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
*/ | ||
|
||
/* eslint-disable no-unused-vars, strict, valid-jsdoc */ | ||
|
||
/** | ||
* @constructor | ||
* @extends {DocumentFragment} | ||
*/ | ||
function StampedTemplate() { } | ||
/** @type {boolean} */ | ||
StampedTemplate.prototype.__noInsertionPoint; | ||
/** @type {!Array<!Node>} */ | ||
StampedTemplate.prototype.nodeList; | ||
/** @type {!Object<string, !Node>} */ | ||
StampedTemplate.prototype.$; | ||
/** @type {!TemplateInfo | undefined} */ | ||
StampedTemplate.prototype.templateInfo; | ||
|
||
/** @interface */ | ||
function NodeInfo() { } | ||
/** @type {string} */ | ||
NodeInfo.prototype.id; | ||
/** @type {!Array<{name: string, value: string}>}*/ | ||
NodeInfo.prototype.events; | ||
/** @type {boolean} */ | ||
NodeInfo.prototype.hasInsertionPoint; | ||
/** @type {!TemplateInfo} */ | ||
NodeInfo.prototype.templateInfo; | ||
/** @type {!NodeInfo} */ | ||
NodeInfo.prototype.parentInfo; | ||
/** @type {number} */ | ||
NodeInfo.prototype.parentIndex; | ||
/** @type {number} */ | ||
NodeInfo.prototype.infoIndex; | ||
/** @type {!Array<!Binding>} */ | ||
NodeInfo.prototype.bindings; | ||
|
||
/** @interface */ | ||
function TemplateInfo() { } | ||
/** @type {!Array<!NodeInfo>} */ | ||
TemplateInfo.prototype.nodeInfoList; | ||
/** @type {!Array<!Node>} */ | ||
TemplateInfo.prototype.nodeList; | ||
/** @type {boolean} */ | ||
TemplateInfo.prototype.stripWhitespace; | ||
/** @type {boolean | undefined} */ | ||
TemplateInfo.prototype.hasInsertionPoint; | ||
/** @type {!Object} */ | ||
TemplateInfo.prototype.hostProps; | ||
/** @type {!Object} */ | ||
TemplateInfo.prototype.propertyEffects; | ||
/** @type {TemplateInfo | undefined} */ | ||
TemplateInfo.prototype.nextTemplateInfo; | ||
/** @type {TemplateInfo | undefined} */ | ||
TemplateInfo.prototype.previousTemplateInfo; | ||
/** @type {!Array<!Node>} */ | ||
TemplateInfo.prototype.childNodes; | ||
/** @type {boolean} */ | ||
TemplateInfo.prototype.wasPreBound; | ||
|
||
/** | ||
* type for HTMLTemplateElement with `_templateInfo` | ||
* | ||
* @constructor | ||
* @extends {HTMLTemplateElement} | ||
*/ | ||
function HTMLTemplateElementWithInfo() { } | ||
/** @type {TemplateInfo} */ | ||
HTMLTemplateElementWithInfo.prototype._templateInfo; | ||
|
||
/** | ||
* @typedef {{ | ||
* literal: string, | ||
* compoundIndex: (number | undefined) | ||
* }} | ||
*/ | ||
let LiteralBindingPart; | ||
|
||
/** | ||
* @typedef {{ | ||
* literal: boolean, | ||
* name: string, | ||
* value: (string | number), | ||
* rootProperty: (string | undefined), | ||
* structured: (boolean | undefined), | ||
* wildcard: (boolean | undefined) | ||
* }} | ||
*/ | ||
let MethodArg; | ||
|
||
/** | ||
* @typedef {{ | ||
* methodName: string, | ||
* static: boolean, | ||
* args: !Array<!MethodArg>, | ||
* dynamicFn: (boolean | undefined), | ||
* }} | ||
*/ | ||
let MethodSignature; | ||
|
||
/** | ||
* @typedef {{ | ||
* mode: string, | ||
* negate: boolean, | ||
* source: string, | ||
* dependencies: !Array<(!MethodArg|string)>, | ||
* customEvent: boolean, | ||
* signature: Object, | ||
* event: string | ||
* }} | ||
*/ | ||
let ExpressionBindingPart; | ||
|
||
/** | ||
* @typedef {LiteralBindingPart | ExpressionBindingPart} | ||
*/ | ||
let BindingPart; | ||
|
||
/** | ||
* @typedef {{ | ||
* kind: string, | ||
* target: string, | ||
* parts: Array<!BindingPart>, | ||
* literal: (string | undefined), | ||
* isCompound: boolean, | ||
* listenerEvent: (string | undefined), | ||
* listenerNegate: (boolean | undefined) | ||
* }} | ||
*/ | ||
let Binding; | ||
|
||
/** | ||
* @typedef {{ | ||
* path: string | ||
* }} | ||
*/ | ||
let PathInfo; | ||
|
||
/** | ||
* @typedef {{ | ||
* forwardHostProp: (function(string, *) | undefined), | ||
* instanceProps: (Object | undefined), | ||
* mutableData: (boolean | undefined), | ||
* notifyInstanceProp: (function(*, string, *) | undefined), | ||
* parentModel: (boolean | undefined) | ||
* }} | ||
*/ | ||
let TemplatizeOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2017 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
--> | ||
<!-- internal shared types for closure pass --> | ||
<script src="polymer-internal-shared-types.js"></script> |
Oops, something went wrong.