From 03d859822fc3a4146bb374cd1e4c2435e1f18fa5 Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Fri, 13 Apr 2018 16:59:02 -0700 Subject: [PATCH] Delete typings for now. --- types/extra-types.d.ts | 147 --- types/lib/elements/array-selector.d.ts | 200 ---- types/lib/elements/custom-style.d.ts | 71 -- types/lib/elements/dom-bind.d.ts | 47 - types/lib/elements/dom-if.d.ts | 71 -- types/lib/elements/dom-module.d.ts | 83 -- types/lib/elements/dom-repeat.d.ts | 282 ------ types/lib/legacy/class.d.ts | 115 --- types/lib/legacy/legacy-element-mixin.d.ts | 635 ------------- types/lib/legacy/mutable-data-behavior.d.ts | 135 --- types/lib/legacy/polymer-fn.d.ts | 25 - types/lib/legacy/polymer.dom.d.ts | 179 ---- types/lib/legacy/templatizer-behavior.d.ts | 116 --- types/lib/mixins/dir-mixin.d.ts | 52 -- types/lib/mixins/disable-upgrade-mixin.d.ts | 49 - types/lib/mixins/element-mixin.d.ts | 233 ----- types/lib/mixins/gesture-event-listeners.d.ts | 53 -- types/lib/mixins/mutable-data.d.ts | 147 --- types/lib/mixins/properties-changed.d.ts | 305 ------- types/lib/mixins/properties-mixin.d.ts | 79 -- types/lib/mixins/property-accessors.d.ts | 152 ---- types/lib/mixins/property-effects.d.ts | 852 ------------------ types/lib/mixins/strict-binding-parser.d.ts | 67 -- types/lib/mixins/template-stamp.d.ts | 258 ------ types/lib/utils/array-splice.d.ts | 49 - types/lib/utils/async.d.ts | 119 --- types/lib/utils/boot.d.ts | 19 - types/lib/utils/case-map.d.ts | 39 - types/lib/utils/debounce.d.ts | 78 -- types/lib/utils/flattened-nodes-observer.d.ts | 96 -- types/lib/utils/flush.d.ts | 28 - types/lib/utils/gestures.d.ts | 87 -- types/lib/utils/html-tag.d.ts | 86 -- types/lib/utils/import-href.d.ts | 27 - types/lib/utils/mixin.d.ts | 22 - types/lib/utils/path.d.ts | 151 ---- types/lib/utils/render-status.d.ts | 45 - types/lib/utils/resolve-url.d.ts | 50 - types/lib/utils/settings.d.ts | 40 - types/lib/utils/style-gather.d.ts | 113 --- types/lib/utils/templatize.d.ts | 218 ----- types/lib/utils/unresolved.d.ts | 10 - types/polymer-element.d.ts | 25 - types/polymer.d.ts | 21 - 44 files changed, 5676 deletions(-) delete mode 100644 types/extra-types.d.ts delete mode 100644 types/lib/elements/array-selector.d.ts delete mode 100644 types/lib/elements/custom-style.d.ts delete mode 100644 types/lib/elements/dom-bind.d.ts delete mode 100644 types/lib/elements/dom-if.d.ts delete mode 100644 types/lib/elements/dom-module.d.ts delete mode 100644 types/lib/elements/dom-repeat.d.ts delete mode 100644 types/lib/legacy/class.d.ts delete mode 100644 types/lib/legacy/legacy-element-mixin.d.ts delete mode 100644 types/lib/legacy/mutable-data-behavior.d.ts delete mode 100644 types/lib/legacy/polymer-fn.d.ts delete mode 100644 types/lib/legacy/polymer.dom.d.ts delete mode 100644 types/lib/legacy/templatizer-behavior.d.ts delete mode 100644 types/lib/mixins/dir-mixin.d.ts delete mode 100644 types/lib/mixins/disable-upgrade-mixin.d.ts delete mode 100644 types/lib/mixins/element-mixin.d.ts delete mode 100644 types/lib/mixins/gesture-event-listeners.d.ts delete mode 100644 types/lib/mixins/mutable-data.d.ts delete mode 100644 types/lib/mixins/properties-changed.d.ts delete mode 100644 types/lib/mixins/properties-mixin.d.ts delete mode 100644 types/lib/mixins/property-accessors.d.ts delete mode 100644 types/lib/mixins/property-effects.d.ts delete mode 100644 types/lib/mixins/strict-binding-parser.d.ts delete mode 100644 types/lib/mixins/template-stamp.d.ts delete mode 100644 types/lib/utils/array-splice.d.ts delete mode 100644 types/lib/utils/async.d.ts delete mode 100644 types/lib/utils/boot.d.ts delete mode 100644 types/lib/utils/case-map.d.ts delete mode 100644 types/lib/utils/debounce.d.ts delete mode 100644 types/lib/utils/flattened-nodes-observer.d.ts delete mode 100644 types/lib/utils/flush.d.ts delete mode 100644 types/lib/utils/gestures.d.ts delete mode 100644 types/lib/utils/html-tag.d.ts delete mode 100644 types/lib/utils/import-href.d.ts delete mode 100644 types/lib/utils/mixin.d.ts delete mode 100644 types/lib/utils/path.d.ts delete mode 100644 types/lib/utils/render-status.d.ts delete mode 100644 types/lib/utils/resolve-url.d.ts delete mode 100644 types/lib/utils/settings.d.ts delete mode 100644 types/lib/utils/style-gather.d.ts delete mode 100644 types/lib/utils/templatize.d.ts delete mode 100644 types/lib/utils/unresolved.d.ts delete mode 100644 types/polymer-element.d.ts delete mode 100644 types/polymer.d.ts diff --git a/types/extra-types.d.ts b/types/extra-types.d.ts deleted file mode 100644 index 8326a0df2e..0000000000 --- a/types/extra-types.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -/** - * This file contains the types that are required for compilation of the - * Polymer generated type declarations, but which could not themselves be - * automatically generated. - */ - -// Types from "externs/polymer-externs.js" - -interface PolymerElementPropertiesMeta { - type?: Function; - value?: any; - readOnly?: boolean; - computed?: string; - reflectToAttribute?: boolean; - notify?: boolean; - observer?: string|((val: any, old: any) => void); -} - -type PolymerElementProperties = { - [key: string]: PolymerElementPropertiesMeta | Function; -}; - -// TODO Document these properties. -interface PolymerInit { - is: string; - extends?: string; - properties?: PolymerElementProperties; - observers?: string[]; - template?: HTMLTemplateElement|string; - hostAttributes?: {[key: string]: any}; - listeners?: {[key: string]: string}; -} - -// Types from "externs/polymer-internal-shared-types.js" - -interface StampedTemplate extends DocumentFragment { - __noInsertionPoint: boolean; - nodeList: Node[]; - $: {[key: string]: Node}; - templateInfo?: TemplateInfo; -} - -interface NodeInfo { - id: string; - events: {name: string, value: string}[]; - hasInsertionPoint: boolean; - templateInfo: TemplateInfo; - parentInfo: NodeInfo; - parentIndex: number; - infoIndex: number; - bindings: Binding[]; -} - -interface TemplateInfo { - nodeInfoList: NodeInfo[]; - nodeList: Node[]; - stripWhitespace: boolean; - hasInsertionPoint?: boolean; - hostProps: Object; - propertyEffects: Object; - nextTemplateInfo?: TemplateInfo; - previousTemplateInfo?: TemplateInfo; - childNodes: Node[]; - wasPreBound: boolean; -} - -interface LiteralBindingPart { - literal: string; - compoundIndex?: number; -} - -interface MethodArg { - literal: boolean; - name: string; - value: string|number; - rootProperty?: string; - structured?: boolean; - wildcard?: boolean; -} - -interface MethodSignature { - methodName: string; - static: boolean; - args: MethodArg[]; - dynamicFn?: boolean; -} - -interface ExpressionBindingPart { - mode: string; - negate: boolean; - source: string; - dependencies: Array; - customEvent: boolean; - signature: Object|null; - event: string; -} - -type BindingPart = LiteralBindingPart|ExpressionBindingPart; - -interface Binding { - kind: string; - target: string; - parts: BindingPart[]; - literal?: string; - isCompound: boolean; - listenerEvent?: string; - listenerNegate?: boolean; -} - -interface AsyncInterface { - run: (fn: Function, delay?: number) => number; - cancel: (handle: number) => void; -} - -// Types from "lib/utils/gestures.html" - -interface GestureRecognizer { - reset: () => void; - mousedown?: (e: MouseEvent) => void; - mousemove?: (e: MouseEvent) => void; - mouseup?: (e: MouseEvent) => void; - touchstart?: (e: TouchEvent) => void; - touchmove?: (e: TouchEvent) => void; - touchend?: (e: TouchEvent) => void; - click?: (e: MouseEvent) => void; -} - -/** - * Not defined in the TypeScript DOM library. - * See https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline - */ -interface IdleDeadline { - didTimeout: boolean; - timeRemaining(): number; -} - -/** - * Polymer defines its own `Element` class, shadowing the standard global - * `Element` class. This means that references to `Element` within the `Polymer` - * namespace inadvertently reference `Polymer.Element`. Here we define an alias - * of the global `Element`, so that we can reference it from declarations within - * the `Polymer` namespace. - * - * See https://github.com/Microsoft/TypeScript/issues/983 for general discussion - * of this shadowing problem in TypeScript. - */ -type _Element = Element; diff --git a/types/lib/elements/array-selector.d.ts b/types/lib/elements/array-selector.d.ts deleted file mode 100644 index 1d99ee52e4..0000000000 --- a/types/lib/elements/array-selector.d.ts +++ /dev/null @@ -1,200 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/elements/array-selector.html - */ - -/// -/// -/// - -declare namespace Polymer { - - - /** - * Element mixin for recording dynamic associations between item paths in a - * master `items` array and a `selected` array such that path changes to the - * master array (at the host) element or elsewhere via data-binding) are - * correctly propagated to items in the selected array and vice-versa. - * - * The `items` property accepts an array of user data, and via the - * `select(item)` and `deselect(item)` API, updates the `selected` property - * which may be bound to other parts of the application, and any changes to - * sub-fields of `selected` item(s) will be kept in sync with items in the - * `items` array. When `multi` is false, `selected` is a property - * representing the last selected item. When `multi` is true, `selected` - * is an array of multiply selected items. - */ - function ArraySelectorMixin {}>(base: T): T & ArraySelectorMixinConstructor & Polymer.ElementMixinConstructor & Polymer.PropertyEffectsConstructor & Polymer.TemplateStampConstructor & Polymer.PropertyAccessorsConstructor & Polymer.PropertiesChangedConstructor & Polymer.PropertiesMixinConstructor; - - interface ArraySelectorMixinConstructor { - new(...args: any[]): ArraySelectorMixin; - } - - interface ArraySelectorMixin { - - /** - * An array containing items from which selection will be made. - */ - items: any[]|null|undefined; - - /** - * When `true`, multiple items may be selected at once (in this case, - * `selected` is an array of currently selected items). When `false`, - * only one item may be selected at a time. - */ - multi: boolean|null|undefined; - - /** - * When `multi` is true, this is an array that contains any selected. - * When `multi` is false, this is the currently selected item, or `null` - * if no item is selected. - */ - selected: object|object[]|null; - - /** - * When `multi` is false, this is the currently selected item, or `null` - * if no item is selected. - */ - selectedItem: object|null; - - /** - * When `true`, calling `select` on an item that is already selected - * will deselect the item. - */ - toggle: boolean|null|undefined; - - /** - * Clears the selection state. - */ - clearSelection(): void; - - /** - * Returns whether the item is currently selected. - * - * @param item Item from `items` array to test - * @returns Whether the item is selected - */ - isSelected(item: any): boolean; - - /** - * Returns whether the item is currently selected. - * - * @param idx Index from `items` array to test - * @returns Whether the item is selected - */ - isIndexSelected(idx: number): boolean; - - /** - * Deselects the given item if it is already selected. - * - * @param item Item from `items` array to deselect - */ - deselect(item: any): void; - - /** - * Deselects the given index if it is already selected. - * - * @param idx Index from `items` array to deselect - */ - deselectIndex(idx: number): void; - - /** - * Selects the given item. When `toggle` is true, this will automatically - * deselect the item if already selected. - * - * @param item Item from `items` array to select - */ - select(item: any): void; - - /** - * Selects the given index. When `toggle` is true, this will automatically - * deselect the item if already selected. - * - * @param idx Index from `items` array to select - */ - selectIndex(idx: number): void; - } - - /** - * Element implementing the `Polymer.ArraySelector` mixin, which records - * dynamic associations between item paths in a master `items` array and a - * `selected` array such that path changes to the master array (at the host) - * element or elsewhere via data-binding) are correctly propagated to items - * in the selected array and vice-versa. - * - * The `items` property accepts an array of user data, and via the - * `select(item)` and `deselect(item)` API, updates the `selected` property - * which may be bound to other parts of the application, and any changes to - * sub-fields of `selected` item(s) will be kept in sync with items in the - * `items` array. When `multi` is false, `selected` is a property - * representing the last selected item. When `multi` is true, `selected` - * is an array of multiply selected items. - * - * Example: - * - * ```html - * - * - * - * - * - * ``` - * - * ```js - * class EmployeeList extends Polymer.Element { - * static get is() { return 'employee-list'; } - * static get properties() { - * return { - * employees: { - * value() { - * return [ - * {first: 'Bob', last: 'Smith'}, - * {first: 'Sally', last: 'Johnson'}, - * ... - * ]; - * } - * } - * }; - * } - * toggleSelection(e) { - * let item = this.$.employeeList.itemForElement(e.target); - * this.$.selector.select(item); - * } - * } - * ``` - */ - class ArraySelector extends - Polymer.ArraySelectorMixin( - Polymer.Element) { - } -} - -interface HTMLElementTagNameMap { - "array-selector": Polymer.ArraySelector; -} diff --git a/types/lib/elements/custom-style.d.ts b/types/lib/elements/custom-style.d.ts deleted file mode 100644 index a0c19a23d1..0000000000 --- a/types/lib/elements/custom-style.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/elements/custom-style.html - */ - -/// - -declare namespace Polymer { - - /** - * Custom element for defining styles in the main document that can take - * advantage of [shady DOM](https://github.com/webcomponents/shadycss) shims - * for style encapsulation, custom properties, and custom mixins. - * - * - Document styles defined in a `` are shimmed to ensure they - * do not leak into local DOM when running on browsers without native - * Shadow DOM. - * - Custom properties can be defined in a ``. Use the `html` selector - * to define custom properties that apply to all custom elements. - * - Custom mixins can be defined in a ``, if you import the optional - * [apply shim](https://github.com/webcomponents/shadycss#about-applyshim) - * (`shadycss/apply-shim.html`). - * - * To use: - * - * - Import `custom-style.html`. - * - Place a `` element in the main document, wrapping an inline ` - * - * ``` - */ - class CustomStyle extends HTMLElement { - - /** - * Returns the light-DOM ` - *
${this.partialTemplate}
- * ${super.template} - * `; - * } - * static get partialTemplate() { return Polymer.html`Partial!`; } - * - * @returns Constructed HTMLTemplateElement - */ - function html(strings: TemplateStringsArray, ...values: any[]): HTMLTemplateElement; - - - /** - * An html literal tag that can be used with `Polymer.html` to compose. - * a literal string. - * - * Example: - * - * static get template() { - * return Polymer.html` - * - *
${staticValue}
- * ${super.template} - * `; - * } - * static get styleTemplate() { return Polymer.htmlLiteral`.shadowed { background: gray; }`; } - * - * @returns Constructed literal string - */ - function htmlLiteral(strings: TemplateStringsArray, ...values: any[]): LiteralString; -} diff --git a/types/lib/utils/import-href.d.ts b/types/lib/utils/import-href.d.ts deleted file mode 100644 index 16a0ae3e71..0000000000 --- a/types/lib/utils/import-href.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/import-href.html - */ - -/// - -declare namespace Polymer { - - - /** - * Convenience method for importing an HTML document imperatively. - * - * This method creates a new `` element with - * the provided URL and appends it to the document to start loading. - * In the `onload` callback, the `import` property of the `link` - * element will contain the imported document contents. - * - * @returns The link element for the URL to be loaded. - */ - function importHref(href: string, onload?: ((p0: Event) => void)|null, onerror?: ((p0: ErrorEvent) => void)|null, optAsync?: boolean): HTMLLinkElement; -} diff --git a/types/lib/utils/mixin.d.ts b/types/lib/utils/mixin.d.ts deleted file mode 100644 index a42c969c20..0000000000 --- a/types/lib/utils/mixin.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/mixin.html - */ - -/// - -declare namespace Polymer { - - - /** - * Wraps an ES6 class expression mixin such that the mixin is only applied - * if it has not already been applied its base argument. Also memoizes mixin - * applications. - */ - function dedupingMixin(mixin: T): T; -} diff --git a/types/lib/utils/path.d.ts b/types/lib/utils/path.d.ts deleted file mode 100644 index afcc5efbac..0000000000 --- a/types/lib/utils/path.d.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/path.html - */ - -/// - -declare namespace Polymer { - - /** - * Module with utilities for manipulating structured data path strings. - */ - namespace Path { - - - /** - * Returns true if the given string is a structured data path (has dots). - * - * Example: - * - * ``` - * Polymer.Path.isPath('foo.bar.baz') // true - * Polymer.Path.isPath('foo') // false - * ``` - * - * @returns True if the string contained one or more dots - */ - function isPath(path: string): boolean; - - - /** - * Returns the root property name for the given path. - * - * Example: - * - * ``` - * Polymer.Path.root('foo.bar.baz') // 'foo' - * Polymer.Path.root('foo') // 'foo' - * ``` - * - * @returns Root property name - */ - function root(path: string): string; - - - /** - * Given `base` is `foo.bar`, `foo` is an ancestor, `foo.bar` is not - * Returns true if the given path is an ancestor of the base path. - * - * Example: - * - * ``` - * Polymer.Path.isAncestor('foo.bar', 'foo') // true - * Polymer.Path.isAncestor('foo.bar', 'foo.bar') // false - * Polymer.Path.isAncestor('foo.bar', 'foo.bar.baz') // false - * ``` - * - * @returns True if `path` is an ancestor of `base`. - */ - function isAncestor(base: string, path: string): boolean; - - - /** - * Given `base` is `foo.bar`, `foo.bar.baz` is an descendant - * - * Example: - * - * ``` - * Polymer.Path.isDescendant('foo.bar', 'foo.bar.baz') // true - * Polymer.Path.isDescendant('foo.bar', 'foo.bar') // false - * Polymer.Path.isDescendant('foo.bar', 'foo') // false - * ``` - * - * @returns True if `path` is a descendant of `base`. - */ - function isDescendant(base: string, path: string): boolean; - - - /** - * Replaces a previous base path with a new base path, preserving the - * remainder of the path. - * - * User must ensure `path` has a prefix of `base`. - * - * Example: - * - * ``` - * Polymer.Path.translate('foo.bar', 'zot', 'foo.bar.baz') // 'zot.baz' - * ``` - * - * @returns Translated string - */ - function translate(base: string, newBase: string, path: string): string; - - - /** - * Converts array-based paths to flattened path. String-based paths - * are returned as-is. - * - * Example: - * - * ``` - * Polymer.Path.normalize(['foo.bar', 0, 'baz']) // 'foo.bar.0.baz' - * Polymer.Path.normalize('foo.bar.0.baz') // 'foo.bar.0.baz' - * ``` - * - * @returns Flattened path - */ - function normalize(path: string|Array): string; - - - /** - * Splits a path into an array of property names. Accepts either arrays - * of path parts or strings. - * - * Example: - * - * ``` - * Polymer.Path.split(['foo.bar', 0, 'baz']) // ['foo', 'bar', '0', 'baz'] - * Polymer.Path.split('foo.bar.0.baz') // ['foo', 'bar', '0', 'baz'] - * ``` - * - * @returns Array of path parts - */ - function split(path: string|Array): string[]; - - - /** - * Reads a value from a path. If any sub-property in the path is `undefined`, - * this method returns `undefined` (will never throw. - * - * @returns Value at path, or `undefined` if the path could not be - * fully dereferenced. - */ - function get(root: object|null, path: string|Array, info?: object|null): any; - - - /** - * Sets a value to a path. If any sub-property in the path is `undefined`, - * this method will no-op. - * - * @returns The normalized version of the input path - */ - function set(root: object|null, path: string|Array, value: any): string|undefined; - } -} diff --git a/types/lib/utils/render-status.d.ts b/types/lib/utils/render-status.d.ts deleted file mode 100644 index 5d4424fcb2..0000000000 --- a/types/lib/utils/render-status.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/render-status.html - */ - -/// - -declare namespace Polymer { - - /** - * Module for scheduling flushable pre-render and post-render tasks. - */ - namespace RenderStatus { - - - /** - * Enqueues a callback which will be run before the next render, at - * `requestAnimationFrame` timing. - * - * This method is useful for enqueuing work that requires DOM measurement, - * since measurement may not be reliable in custom element callbacks before - * the first render, as well as for batching measurement tasks in general. - * - * Tasks in this queue may be flushed by calling `Polymer.RenderStatus.flush()`. - */ - function beforeNextRender(context: any, callback: (...p0: any[]) => void, args?: any[]): void; - - - /** - * Enqueues a callback which will be run after the next render, equivalent - * to one task (`setTimeout`) after the next `requestAnimationFrame`. - * - * This method is useful for tuning the first-render performance of an - * element or application by deferring non-critical work until after the - * first paint. Typical non-render-critical work may include adding UI - * event listeners and aria attributes. - */ - function afterNextRender(context: any, callback: (...p0: any[]) => void, args?: any[]): void; - } -} diff --git a/types/lib/utils/resolve-url.d.ts b/types/lib/utils/resolve-url.d.ts deleted file mode 100644 index 5aae176fff..0000000000 --- a/types/lib/utils/resolve-url.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/resolve-url.html - */ - -/// - -declare namespace Polymer { - - /** - * Module with utilities for resolving relative URL's. - */ - namespace ResolveUrl { - - - /** - * Resolves the given URL against the provided `baseUri'. - * - * Note that this function performs no resolution for URLs that start - * with `/` (absolute URLs) or `#` (hash identifiers). For general purpose - * URL resolution, use `window.URL`. - * - * @returns resolved URL - */ - function resolveUrl(url: string, baseURI?: string|null): string; - - - /** - * Resolves any relative URL's in the given CSS text against the provided - * `ownerDocument`'s `baseURI`. - * - * @returns Processed CSS text with resolved URL's - */ - function resolveCss(cssText: string, baseURI: string): string; - - - /** - * Returns a path from a given `url`. The path includes the trailing - * `/` from the url. - * - * @returns resolved path - */ - function pathFromUrl(url: string): string; - } -} diff --git a/types/lib/utils/settings.d.ts b/types/lib/utils/settings.d.ts deleted file mode 100644 index b2f90ffe76..0000000000 --- a/types/lib/utils/settings.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/settings.html - */ - -/// -/// - -declare namespace Polymer { - - /** - * Sets the global, legacy settings. - */ - namespace Settings { - } - - - /** - * Sets the global rootPath property used by `Polymer.ElementMixin` and - * available via `Polymer.rootPath`. - */ - function setRootPath(path: string): void; - - - /** - * Sets the global sanitizeDOMValue available via `Polymer.sanitizeDOMValue`. - */ - function setSanitizeDOMValue(newSanitizeDOMValue: ((p0: any, p1: string, p2: string, p3: Node|null) => any)|undefined): void; - - - /** - * Sets `passiveTouchGestures` globally for all elements using Polymer Gestures. - */ - function setPassiveTouchGestures(usePassive: boolean): void; -} diff --git a/types/lib/utils/style-gather.d.ts b/types/lib/utils/style-gather.d.ts deleted file mode 100644 index 842a70d472..0000000000 --- a/types/lib/utils/style-gather.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -/** - * DO NOT EDIT - * - * This file was automatically generated by - * https://github.com/Polymer/gen-typescript-declarations - * - * To modify these typings, edit the source file(s): - * lib/utils/style-gather.html - */ - -/// - -declare namespace Polymer { - - /** - * Module with utilities for collection CSS text from ``, external - * stylesheets, and `dom-module`s. - */ - namespace StyleGather { - - - /** - * Returns a list of