work around acorn types (#10301)

* work around acorn types

* ugh

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/10336/head
Rich Harris 11 months ago committed by GitHub
parent 4d8ce93d2e
commit 452dc4ac9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,4 @@
declare module 'acorn' {
export function isIdentifierStart(code: number, astral: boolean): boolean;
export function isIdentifierChar(code: number, astral: boolean): boolean;
}

@ -4,7 +4,7 @@ export async function load({ fetch, params, url }) {
const res = await fetch(`/repl/api/${params.id}.json`);
if (!res.ok) {
throw error(res.status);
throw error(/** @type {any} */ (res.status));
}
const gist = await res.json();

Loading…
Cancel
Save