File tree Expand file tree Collapse file tree 6 files changed +6
-19
lines changed Expand file tree Collapse file tree 6 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://unpkg.com/knip@5/schema.json" ,
3
3
"entry" : [
4
- " src/*/index.js" ,
5
- " src/index-client.ts" ,
6
- " src/index-server.ts" ,
7
- " src/index.d.ts" ,
8
4
" tests/**/*.js" ,
9
5
" tests/**/*.ts" ,
10
6
" !tests/**/*.svelte" ,
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ import { validate_identifier_name } from './2-analyze/visitors/shared/utils.js';
18
18
19
19
const UNKNOWN = Symbol ( 'unknown' ) ;
20
20
/** Includes `BigInt` */
21
- export const NUMBER = Symbol ( 'number' ) ;
22
- export const STRING = Symbol ( 'string' ) ;
23
- export const FUNCTION = Symbol ( 'string' ) ;
21
+ const NUMBER = Symbol ( 'number' ) ;
22
+ const STRING = Symbol ( 'string' ) ;
23
+ const FUNCTION = Symbol ( 'string' ) ;
24
24
25
25
/** @type {Record<string, [type: NUMBER | STRING | UNKNOWN, fn?: Function]> } */
26
26
const globals = {
Original file line number Diff line number Diff line change 1
1
/** @import { ComponentContext, DevStackEntry } from '#client' */
2
-
3
2
import { DEV } from 'esm-env' ;
4
3
import * as e from './errors.js' ;
5
4
import { source } from './reactivity/sources.js' ;
6
- import {
7
- active_effect ,
8
- active_reaction ,
9
- set_active_effect ,
10
- set_active_reaction
11
- } from './runtime.js' ;
12
- import { create_user_effect , teardown } from './reactivity/effects.js' ;
5
+ import { create_user_effect } from './reactivity/effects.js' ;
13
6
import { legacy_mode_flag } from '../flags/index.js' ;
14
7
import { FILENAME } from '../../constants.js' ;
15
8
Original file line number Diff line number Diff line change 1
1
import { STALE_REACTION } from '#client/constants' ;
2
2
3
3
/** @type {AbortController | null } */
4
- export let controller = null ;
4
+ let controller = null ;
5
5
6
6
export function abort ( ) {
7
7
controller ?. abort ( STALE_REACTION ) ;
Original file line number Diff line number Diff line change 1
- /** @import { TemplateNode } from '#client' */
2
- /** @import { Getters } from '#shared' */
3
1
import { is_void } from '../../utils.js' ;
4
2
import * as w from './warnings.js' ;
5
3
import * as e from './errors.js' ;
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ export function is_mathml(name) {
428
428
return MATHML_ELEMENTS . includes ( name ) ;
429
429
}
430
430
431
- export const STATE_CREATION_RUNES = /** @type {const } */ ( [
431
+ const STATE_CREATION_RUNES = /** @type {const } */ ( [
432
432
'$state' ,
433
433
'$state.raw' ,
434
434
'$derived' ,
You can’t perform that action at this time.
0 commit comments