Skip to content

Commit

Permalink
Fix two build issues
Browse files Browse the repository at this point in the history
Some TypeScripts need resolve explicitly typed, and some closure compiler versions need the `whenDefined` method on our registry ponyfill quoted.
  • Loading branch information
rictic committed Jan 31, 2024
1 parent b66d904 commit af7d389
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if (!ShadowRoot.prototype.createElement) {
readonly promise: Promise<T>;
readonly resolve: (val: T) => void;
constructor() {
let resolve;
let resolve: (val: T) => void;
this.promise = new Promise<T>((r) => {
resolve = r;
});
Expand Down Expand Up @@ -210,7 +210,7 @@ if (!ShadowRoot.prototype.createElement) {
return this._definitionsByTag.get(tagName);
}

whenDefined(tagName: string) {
['whenDefined'](tagName: string) {
const definition = this._getDefinition(tagName);
if (definition !== undefined) {
return Promise.resolve(definition.elementClass);
Expand Down

0 comments on commit af7d389

Please sign in to comment.