store.ts — svelte Source File
Architecture documentation for store.ts, a typescript file in the svelte codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ab8786e5_2e51_d686_03a3_45631dc30dc8["store.ts"] 2a326dd9_0c85_e80e_8583_b615f933d01e["store"] ab8786e5_2e51_d686_03a3_45631dc30dc8 --> 2a326dd9_0c85_e80e_8583_b615f933d01e style ab8786e5_2e51_d686_03a3_45631dc30dc8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { derived, writable } from 'svelte/store';
const a = writable(false);
derived(a, (aVal) => {
// @ts-expect-error
aVal === '';
return aVal === true;
});
derived([a], ([aVal]) => {
// @ts-expect-error
aVal === '';
return aVal === true;
});
derived(
a,
(value, set) => {
set('works');
// @ts-expect-error
set(true);
value === true;
// @ts-expect-error
value === '';
},
''
);
Dependencies
- store
Source
Frequently Asked Questions
What does store.ts do?
store.ts is a source file in the svelte codebase, written in typescript.
What does store.ts depend on?
store.ts imports 1 module(s): store.
Where is store.ts in the architecture?
store.ts is located at packages/svelte/tests/types/store.ts (directory: packages/svelte/tests/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free