Skip to content

Commit 452dc4a

Browse files
authored
work around acorn types (#10301)
* work around acorn types * ugh --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 4d8ce93 commit 452dc4a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module 'acorn' {
2+
export function isIdentifierStart(code: number, astral: boolean): boolean;
3+
export function isIdentifierChar(code: number, astral: boolean): boolean;
4+
}

sites/svelte.dev/src/routes/(authed)/repl/[id]/embed/+page.server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export async function load({ fetch, params, url }) {
44
const res = await fetch(`/repl/api/${params.id}.json`);
55

66
if (!res.ok) {
7-
throw error(res.status);
7+
throw error(/** @type {any} */ (res.status));
88
}
99

1010
const gist = await res.json();

0 commit comments

Comments
 (0)