-
Notifications
You must be signed in to change notification settings - Fork 2k
/
settings.d.ts
157 lines (102 loc) · 3.96 KB
/
settings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// tslint:disable:variable-name Describing an API that's defined elsewhere.
// tslint:disable:no-any describes the API as best we are able today
import {pathFromUrl} from './resolve-url.js';
export {setRootPath};
/**
* Sets the global rootPath property used by `ElementMixin` and
* available via `rootPath`.
*/
declare function setRootPath(path: string): void;
export type SanitizeDOMValueFunction =
(value: unknown, name: string, type: 'property'|'attribute',
node: Node|null|undefined) => unknown;
export {setSanitizeDOMValue};
/**
* Sets the global sanitizeDOMValue available via this module's exported
* `sanitizeDOMValue` variable.
*/
declare function setSanitizeDOMValue(newSanitizeDOMValue: SanitizeDOMValueFunction|undefined): void;
export {getSanitizeDOMValue};
/**
* Gets sanitizeDOMValue, for environments that don't well support `export let`.
*
* @returns sanitizeDOMValue
*/
declare function getSanitizeDOMValue(): SanitizeDOMValueFunction|undefined;
export {setPassiveTouchGestures};
/**
* Sets `passiveTouchGestures` globally for all elements using Polymer Gestures.
*/
declare function setPassiveTouchGestures(usePassive: boolean): void;
export {setStrictTemplatePolicy};
/**
* Sets `strictTemplatePolicy` globally for all elements
*/
declare function setStrictTemplatePolicy(useStrictPolicy: boolean): void;
export {setAllowTemplateFromDomModule};
/**
* Sets `lookupTemplateFromDomModule` globally for all elements
*/
declare function setAllowTemplateFromDomModule(allowDomModule: boolean): void;
export {setLegacyOptimizations};
/**
* Sets `legacyOptimizations` globally for all elements to enable optimizations
* when only legacy based elements are used.
*/
declare function setLegacyOptimizations(useLegacyOptimizations: boolean): void;
export {setLegacyWarnings};
/**
* Sets `legacyWarnings` globally for all elements to migration warnings.
*/
declare function setLegacyWarnings(useLegacyWarnings: boolean): void;
export {setSyncInitialRender};
/**
* Sets `syncInitialRender` globally for all elements to enable synchronous
* initial rendering.
*/
declare function setSyncInitialRender(useSyncInitialRender: boolean): void;
export {setLegacyUndefined};
/**
* Sets `legacyUndefined` globally for all elements to enable legacy
* multi-property behavior for undefined values.
*/
declare function setLegacyUndefined(useLegacyUndefined: boolean): void;
export {setOrderedComputed};
/**
* Sets `orderedComputed` globally for all elements to enable ordered computed
* property computation.
*/
declare function setOrderedComputed(useOrderedComputed: boolean): void;
export {setCancelSyntheticClickEvents};
/**
* Sets `setCancelSyntheticEvents` globally for all elements to cancel synthetic click events.
*/
declare function setCancelSyntheticClickEvents(useCancelSyntheticClickEvents: boolean): void;
export {setRemoveNestedTemplates};
/**
* Sets `removeNestedTemplates` globally, to eliminate nested templates
* inside `dom-if` and `dom-repeat` as part of template parsing.
*/
declare function setRemoveNestedTemplates(useRemoveNestedTemplates: boolean): void;
export {setFastDomIf};
/**
* Sets `fastDomIf` globally, to put `dom-if` in a performance-optimized mode.
*/
declare function setFastDomIf(useFastDomIf: boolean): void;
export {setSuppressTemplateNotifications};
/**
* Sets `suppressTemplateNotifications` globally, to disable `dom-change` and
* `rendered-item-count` events from `dom-if` and `dom-repeat`.
*/
declare function setSuppressTemplateNotifications(suppress: boolean): void;
export {setLegacyNoObservedAttributes};
/**
* Sets `legacyNoObservedAttributes` globally, to disable `observedAttributes`.
*/
declare function setLegacyNoObservedAttributes(noObservedAttributes: boolean): void;
export {setUseAdoptedStyleSheetsWithBuiltCSS};
/**
* Sets `useAdoptedStyleSheetsWithBuiltCSS` globally.
*/
declare function setUseAdoptedStyleSheetsWithBuiltCSS(value: boolean): void;
export let legacyOptimizations: boolean;