Skip to content

Commit

Permalink
chore(typings): update browser-compile typings (#3259)
Browse files Browse the repository at this point in the history
this commit is a quick fix for the browser-compile tests that currently
do not compile after setting `useUnknownInCatchVariables` in
#3211. This went unnoticed as
this application is not currently type checked by our CI process. In
order to get the application to compile, we type the error as `any` for
now, with the intent of properly narrowing it in STENCIL-371 (and adding
proper CI checks there as well). this commit only unblocks next monday's
release.
  • Loading branch information
rwaskiewicz authored Mar 2, 2022
1 parent eee1c91 commit 6104dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/browser-compile/src/components/app-root/app-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ export class AppRoot {
}

this.preview();
} catch (e) {
} catch (e: any) {
// TODO(STENCIL-371): Update typings for `e` to be more narrow than `any`
this.bundledInput.value = e;
if (e.loc && e.loc.file) {
this.bundledInput.value += '\n\n\n' + e.loc.file;
Expand Down

0 comments on commit 6104dbc

Please sign in to comment.