Skip to content

Commit

Permalink
Upstream http://cl/368587394
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Apr 27, 2022
1 parent 178dfa5 commit 4036db4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/legacy/class.d.ts
Expand Up @@ -86,6 +86,6 @@ export {Class};
*
* @returns Generated class
*/
declare function Class<T>(info: PolymerInit, mixin: (p0: T) => T): {new(): HTMLElement};
declare function Class<T>(info: PolymerInit, mixin?: (p0: T) => T): {new(): HTMLElement};

import {PolymerInit} from '../../interfaces';
7 changes: 4 additions & 3 deletions lib/legacy/polymer-fn.d.ts
Expand Up @@ -16,8 +16,9 @@ import {Class} from './class.js';
*
* @returns Generated class
*/
declare function Polymer(info: PolymerInit): {new(): HTMLElement};

export {Polymer};
export const Polymer: {
(info: PolymerInit): {new(): HTMLElement};
Class: typeof Class;
}

import {PolymerInit} from '../../interfaces';
2 changes: 2 additions & 0 deletions lib/utils/settings.d.ts
Expand Up @@ -153,3 +153,5 @@ export {setUseAdoptedStyleSheetsWithBuiltCSS};
* Sets `useAdoptedStyleSheetsWithBuiltCSS` globally.
*/
declare function setUseAdoptedStyleSheetsWithBuiltCSS(value: boolean): void;

export let legacyOptimizations: boolean;

0 comments on commit 4036db4

Please sign in to comment.