-
Notifications
You must be signed in to change notification settings - Fork 187
/
index.ts
55 lines (50 loc) · 1.51 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
import { getGlobal } from './lib/utils';
const GLIMMER_VALIDATOR_REGISTRATION = Symbol('GLIMMER_VALIDATOR_REGISTRATION');
const globalObj = getGlobal();
if (globalObj[GLIMMER_VALIDATOR_REGISTRATION] === true) {
throw new Error(
'The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.'
);
}
globalObj[GLIMMER_VALIDATOR_REGISTRATION] = true;
export { debug } from './lib/debug';
export { dirtyTagFor, tagFor, type TagMeta, tagMetaFor, infoForTag } from './lib/meta';
export { trackedData } from './lib/tracked-data';
export {
beginTrackFrame,
beginUntrackFrame,
type Cache,
consumeTag,
createCache,
endTrackFrame,
endUntrackFrame,
getValue,
isConst,
isTracking,
resetTracking,
track,
untrack,
} from './lib/tracking';
export {
ALLOW_CYCLES,
bump,
combine,
COMPUTE,
CONSTANT,
CONSTANT_TAG,
createTag,
createUpdatableTag,
CURRENT_TAG,
CurrentTag,
DIRTY_TAG as dirtyTag,
INITIAL,
isConstTag,
type Revision,
UPDATE_TAG as updateTag,
validateTag,
valueForTag,
VOLATILE,
VOLATILE_TAG,
VolatileTag,
} from './lib/validators';
export type { CombinatorTag, ConstantTag, DirtyableTag, Tag, UpdatableTag } from "@glimmer/interfaces";