chore: tidy up some stuff (#16357)

* chore: tidy up some stuff

* shut up dumbass
pull/16360/head
Rich Harris 2 months ago committed by GitHub
parent 61f75651d6
commit 4ef53a75a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,10 +1,6 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": [
"src/*/index.js",
"src/index-client.ts",
"src/index-server.ts",
"src/index.d.ts",
"tests/**/*.js",
"tests/**/*.ts",
"!tests/**/*.svelte",

@ -18,9 +18,9 @@ import { validate_identifier_name } from './2-analyze/visitors/shared/utils.js';
const UNKNOWN = Symbol('unknown');
/** Includes `BigInt` */
export const NUMBER = Symbol('number');
export const STRING = Symbol('string');
export const FUNCTION = Symbol('string');
const NUMBER = Symbol('number');
const STRING = Symbol('string');
const FUNCTION = Symbol('string');
/** @type {Record<string, [type: NUMBER | STRING | UNKNOWN, fn?: Function]>} */
const globals = {

@ -1,15 +1,8 @@
/** @import { ComponentContext, DevStackEntry } from '#client' */
import { DEV } from 'esm-env';
import * as e from './errors.js';
import { source } from './reactivity/sources.js';
import {
active_effect,
active_reaction,
set_active_effect,
set_active_reaction
} from './runtime.js';
import { create_user_effect, teardown } from './reactivity/effects.js';
import { create_user_effect } from './reactivity/effects.js';
import { legacy_mode_flag } from '../flags/index.js';
import { FILENAME } from '../../constants.js';

@ -1,7 +1,7 @@
import { STALE_REACTION } from '#client/constants';
/** @type {AbortController | null} */
export let controller = null;
let controller = null;
export function abort() {
controller?.abort(STALE_REACTION);

@ -1,5 +1,3 @@
/** @import { TemplateNode } from '#client' */
/** @import { Getters } from '#shared' */
import { is_void } from '../../utils.js';
import * as w from './warnings.js';
import * as e from './errors.js';

@ -428,7 +428,7 @@ export function is_mathml(name) {
return MATHML_ELEMENTS.includes(name);
}
export const STATE_CREATION_RUNES = /** @type {const} */ ([
const STATE_CREATION_RUNES = /** @type {const} */ ([
'$state',
'$state.raw',
'$derived',

Loading…
Cancel
Save