-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
index.ts
106 lines (103 loc) · 2.67 KB
/
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
export * from './src/ObservableHint';
export { isObserved, shouldIgnoreUnobserved } from './src/ObservableObject';
export { batch, beginBatch, endBatch } from './src/batching';
export { computed } from './src/computed';
export { event } from './src/event';
export { isObservable } from './src/globals';
export {
applyChange,
applyChanges,
computeSelector,
constructObjectWithPath,
deconstructObjectWithPath,
getObservableIndex,
isObservableValueReady,
mergeIntoObservable,
opaqueObject,
setAtPath,
setSilently,
} from './src/helpers';
export {
hasOwnProperty,
isArray,
isBoolean,
isDate,
isEmpty,
isFunction,
isMap,
isNullOrUndefined,
isNumber,
isObject,
isPlainObject,
isPrimitive,
isPromise,
isSet,
isString,
isSymbol,
} from './src/is';
export { linked } from './src/linked';
export { observable, observablePrimitive } from './src/observable';
export type * from './src/observableInterfaces';
export * from './src/observableTypes';
export { observe } from './src/observe';
export { proxy } from './src/proxy';
export { syncState } from './src/syncState';
export { trackSelector } from './src/trackSelector';
export { when, whenReady } from './src/when';
/** @internal */
export { beginTracking, endTracking, tracking, updateTracking } from './src/tracking';
/** @internal */
export { setupTracking } from './src/setupTracking';
/** @internal */
export { findIDKey, getNode, getNodeValue, optimized, symbolDelete } from './src/globals';
/** @internal */
export { ObservablePrimitiveClass } from './src/ObservablePrimitive';
// Internal:
import { get, getProxy, observableFns, observableProperties, peek, set } from './src/ObservableObject';
import { createPreviousHandler } from './src/batching';
import {
clone,
ensureNodeValue,
findIDKey,
getNode,
getNodeValue,
getPathType,
globalState,
optimized,
safeParse,
safeStringify,
setNodeValue,
symbolDelete,
symbolLinked,
} from './src/globals';
import { deepMerge, getValueAtPath, initializePathType, setAtPath } from './src/helpers';
import { tracking } from './src/tracking';
import { ObservablePrimitiveClass } from './src/ObservablePrimitive';
export const internal = {
createPreviousHandler,
clone,
deepMerge,
ensureNodeValue,
findIDKey,
get,
getNode,
getNodeValue,
getPathType,
getProxy,
getValueAtPath,
globalState,
initializePathType,
ObservablePrimitiveClass,
observableProperties,
observableFns,
optimized,
peek,
safeParse,
safeStringify,
set,
setAtPath,
setNodeValue,
symbolLinked,
symbolDelete,
tracking,
};