@polymer/polymer
Version:
The Polymer library makes it easy to create your own web components. Give your element some markup and properties, and then use it on a site. Polymer provides features like dynamic templates and data binding to reduce the amount of boilerplate you need to
52 lines (38 loc) • 1.36 kB
TypeScript
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* lib/utils/settings.html
*/
// tslint:disable:variable-name Describing an API that's defined elsewhere.
// tslint:disable:no-any describes the API as best we are able today
/// <reference path="boot.d.ts" />
/// <reference path="resolve-url.d.ts" />
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;
/**
* Sets `legacyOptimizations` globally for all elements. Enables
* optimizations when only legacy Polymer() style elements are used.
*/
function setLegacyOptimizations(useLegacyOptimizations: boolean): void;
}