Merge branch 'svelte-4' into pr/10295

pull/10295/head
Rich Harris 3 years ago
commit 0d661948d8

@ -345,7 +345,7 @@ export interface CompileOptions {
*/
preserveWhitespace?: boolean;
/**
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
*
* @default true
*/

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

@ -602,7 +602,7 @@ declare module 'svelte/compiler' {
*/
preserveWhitespace?: boolean;
/**
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
*
* @default true
*/
@ -1211,7 +1211,7 @@ declare module 'svelte/types/compiler/interfaces' {
*/
preserveWhitespace?: boolean;
/**
* If `true`, exposes the Svelte major version on the global `window` object in the browser.
* If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
*
* @default true
*/

@ -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