deno.land / x / solid@v1.5.6 / src / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
export { createRoot, createSignal, createEffect, createRenderEffect, createComputed, createReaction, createDeferred, createSelector, createMemo, createResource, onMount, onCleanup, onError, untrack, batch, on, enableScheduling, enableExternalSource, startTransition, useTransition, createContext, useContext, children, getListener, getOwner, runWithOwner, equalFn, $DEVCOMP, $PROXY, $TRACK} from "./reactive/signal.js";export type { Accessor, Setter, Signal, Resource, ResourceActions, ResourceSource, ResourceOptions, ResourceReturn, ResourceFetcher, ResourceFetcherInfo, ChildrenReturn, Context, ReturnTypes, Owner, InitializedResource, InitializedResourceOptions, InitializedResourceReturn} from "./reactive/signal.js";

export * from "./reactive/observable.js";export * from "./reactive/scheduler.js";export * from "./reactive/array.js";export * from "./render/index.js";
import type { JSX } from "./jsx.js";type JSXElement = JSX.Element;export type { JSXElement, JSX };
// devimport { writeSignal, serializeGraph, registerGraph, hashValue } from "./reactive/signal.js";let DEV: { writeSignal: typeof writeSignal; serializeGraph: typeof serializeGraph; registerGraph: typeof registerGraph; hashValue: typeof hashValue;};if ("_SOLID_DEV_") { DEV = { writeSignal, serializeGraph, registerGraph, hashValue };}export { DEV };
// handle multiple instance checkdeclare global { var Solid$$: boolean;}
if ("_SOLID_DEV_" && globalThis) { if (!globalThis.Solid$$) globalThis.Solid$$ = true; else console.warn( "You appear to have multiple instances of Solid. This can lead to unexpected behavior." );}
solid

Version Info

Tagged at
a year ago