Commit 604856b 1 parent 05878b6 commit 604856b Copy full SHA for 604856b
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 8
8
" index.html"
9
9
],
10
10
"excludeIdentifiers" : [
11
- " templatizedBase"
11
+ " templatizedBase" ,
12
+ " setAttribute"
12
13
],
13
14
"removeReferences" : [
14
15
" ../shadycss/apply-shim.d.ts" ,
Original file line number Diff line number Diff line change @@ -145,9 +145,15 @@ export const LegacyElementMixin = dedupingMixin((base) => {
145
145
146
146
/**
147
147
* Sets the value of an attribute.
148
+ *
149
+ * NOTE: This function is explicitly excluded when running
150
+ * gen-typescript-declarations because the function it overrides has
151
+ * different signatures in Closure and TypeScript's built-in types. This
152
+ * function's signature should match the signature from Closure:
153
+ * https://github.com/google/closure-compiler/blob/8972fd4e9b0689e7ebdeea53580521c819f6aecc/externs/browser/w3c_dom1.js#L686-L694
148
154
* @override
149
155
* @param {string } name The name of the attribute to change.
150
- * @param {string } value The new attribute value.
156
+ * @param {string|number|boolean|!TrustedHTML|!TrustedScriptURL|!TrustedURL } value The new attribute value.
151
157
*/
152
158
setAttribute ( name , value ) {
153
159
if ( legacyNoObservedAttributes && ! this . _legacyForceObservedAttributes ) {
You can’t perform that action at this time.
0 commit comments