atom.io 0.33.2 → 0.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/index.d.ts +3 -3
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/eslint-plugin/index.d.ts.map +1 -1
- package/dist/internal/index.d.ts +118 -54
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +381 -128
- package/dist/internal/index.js.map +1 -1
- package/dist/introspection/index.d.ts +11 -10
- package/dist/introspection/index.d.ts.map +1 -1
- package/dist/introspection/index.js +4 -4
- package/dist/introspection/index.js.map +1 -1
- package/dist/json/index.d.ts +3 -3
- package/dist/json/index.d.ts.map +1 -1
- package/dist/json/index.js +2 -2
- package/dist/json/index.js.map +1 -1
- package/dist/main/index.d.ts +157 -36
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js +15 -3
- package/dist/main/index.js.map +1 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/{devtools-Jyn42mZm.css → react-devtools/index.css} +1 -1
- package/dist/react-devtools/index.css.map +1 -0
- package/dist/react-devtools/index.d.ts +0 -1
- package/dist/react-devtools/index.d.ts.map +1 -1
- package/dist/react-devtools/index.js +8 -3
- package/dist/react-devtools/index.js.map +1 -1
- package/dist/realtime/index.d.ts +3 -2
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime/index.js.map +1 -1
- package/dist/realtime-client/index.d.ts +4 -1
- package/dist/realtime-client/index.d.ts.map +1 -1
- package/dist/realtime-client/index.js.map +1 -1
- package/dist/realtime-react/index.d.ts.map +1 -1
- package/dist/realtime-react/index.js.map +1 -1
- package/dist/realtime-server/index.d.ts +27 -2
- package/dist/realtime-server/index.d.ts.map +1 -1
- package/dist/realtime-server/index.js.map +1 -1
- package/dist/realtime-testing/index.d.ts.map +1 -1
- package/dist/transceivers/set-rtx/index.d.ts.map +1 -1
- package/dist/web/index.d.ts.map +1 -1
- package/package.json +21 -21
- package/src/data/dict.ts +5 -5
- package/src/data/struct-family.ts +2 -2
- package/src/data/struct.ts +1 -1
- package/src/internal/atom/create-regular-atom.ts +14 -17
- package/src/internal/caching.ts +1 -1
- package/src/internal/families/create-readonly-held-selector-family.ts +81 -0
- package/src/internal/families/{create-readonly-selector-family.ts → create-readonly-pure-selector-family.ts} +26 -23
- package/src/internal/families/create-selector-family.ts +39 -16
- package/src/internal/families/create-writable-held-selector-family.ts +80 -0
- package/src/internal/families/{create-writable-selector-family.ts → create-writable-pure-selector-family.ts} +26 -23
- package/src/internal/families/dispose-from-store.ts +4 -2
- package/src/internal/families/find-in-store.ts +8 -8
- package/src/internal/families/get-family-of-token.ts +8 -8
- package/src/internal/families/index.ts +3 -3
- package/src/internal/families/init-family-member.ts +12 -10
- package/src/internal/families/seek-in-store.ts +13 -11
- package/src/internal/get-state/get-from-store.ts +5 -2
- package/src/internal/get-state/read-or-compute-value.ts +4 -2
- package/src/internal/index.ts +97 -20
- package/src/internal/join/join-internal.ts +18 -18
- package/src/internal/keys.ts +1 -1
- package/src/internal/mutable/create-mutable-atom.ts +17 -15
- package/src/internal/mutable/get-json-family.ts +4 -4
- package/src/internal/mutable/get-json-token.ts +7 -7
- package/src/internal/selector/create-readonly-held-selector.ts +50 -0
- package/src/internal/selector/create-readonly-pure-selector.ts +51 -0
- package/src/internal/selector/create-standalone-selector.ts +48 -15
- package/src/internal/selector/create-writable-held-selector.ts +68 -0
- package/src/internal/selector/{create-writable-selector.ts → create-writable-pure-selector.ts} +18 -25
- package/src/internal/selector/dispose-selector.ts +37 -7
- package/src/internal/selector/get-selector-dependency-keys.ts +1 -1
- package/src/internal/selector/index.ts +4 -2
- package/src/internal/selector/register-selector.ts +17 -5
- package/src/internal/selector/trace-selector-atoms.ts +5 -5
- package/src/internal/selector/update-selector-atoms.ts +16 -10
- package/src/internal/set-state/emit-update.ts +4 -2
- package/src/internal/set-state/set-atom-or-selector.ts +2 -1
- package/src/internal/store/counterfeit.ts +13 -11
- package/src/internal/store/deposit.ts +18 -14
- package/src/internal/store/store.ts +9 -14
- package/src/internal/store/withdraw.ts +83 -7
- package/src/internal/subscribe/subscribe-in-store.ts +4 -2
- package/src/internal/subscribe/subscribe-to-state.ts +2 -1
- package/src/internal/timeline/create-timeline.ts +4 -2
- package/src/internal/transaction/build-transaction.ts +1 -1
- package/src/introspection/attach-atom-index.ts +2 -2
- package/src/introspection/attach-introspection-states.ts +9 -9
- package/src/introspection/attach-selector-index.ts +3 -3
- package/src/introspection/attach-timeline-family.ts +2 -2
- package/src/introspection/attach-timeline-index.ts +2 -2
- package/src/introspection/attach-transaction-index.ts +2 -2
- package/src/introspection/attach-transaction-logs.ts +2 -2
- package/src/introspection/attach-type-selectors.ts +5 -5
- package/src/introspection/auditor.ts +3 -3
- package/src/json/select-json-family.ts +5 -5
- package/src/json/select-json.ts +1 -1
- package/src/main/find-state.ts +8 -8
- package/src/main/index.ts +51 -6
- package/src/main/join.ts +13 -13
- package/src/main/logger.ts +32 -15
- package/src/main/selector.ts +164 -30
- package/src/main/transaction.ts +3 -3
- package/src/main/validators.ts +16 -12
- package/src/react-devtools/StateEditor.tsx +14 -4
- package/src/react-devtools/StateIndex.tsx +6 -4
- package/src/react-devtools/TimelineIndex.tsx +2 -2
- package/src/react-devtools/TransactionIndex.tsx +2 -2
- package/src/realtime/shared-room-store.ts +3 -3
- package/src/realtime-client/realtime-client-stores/client-main-store.ts +1 -1
- package/src/realtime-react/use-pull-selector-family-member.ts +1 -0
- package/src/realtime-server/realtime-server-stores/server-room-external-store.ts +2 -2
- package/dist/devtools-CAg2k57t.js +0 -0
- package/dist/devtools-Jyn42mZm.css.map +0 -1
- package/src/internal/selector/create-readonly-selector.ts +0 -55
package/dist/data/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as AtomIO$1 from "atom.io";
|
|
|
5
5
|
import * as AtomIO from "atom.io";
|
|
6
6
|
|
|
7
7
|
//#region src/data/dict.d.ts
|
|
8
|
-
declare function dict<State, Key extends Canonical>(family: AtomIO$2.
|
|
8
|
+
declare function dict<State, Key extends Canonical>(family: AtomIO$2.ReadonlyPureSelectorFamilyToken<State, Key> | AtomIO$2.RegularAtomFamilyToken<State, Key> | AtomIO$2.WritablePureSelectorFamilyToken<State, Key>, index: AtomIO$2.ReadonlyPureSelectorToken<Key[]> | AtomIO$2.RegularAtomToken<Key[]> | AtomIO$2.WritablePureSelectorToken<Key[]>, store?: Store): AtomIO$2.ReadonlyPureSelectorToken<{ [K in stringified<Key>]: State }>;
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/data/struct.d.ts
|
|
@@ -14,14 +14,14 @@ declare function struct<Struct extends {
|
|
|
14
14
|
}, Key extends string>(options: {
|
|
15
15
|
key: Key;
|
|
16
16
|
default: Struct;
|
|
17
|
-
}, store?: Store): [{ [K in keyof Struct as `${Key}${Capitalize<K & string>}State`]: AtomIO$1.RegularAtomToken<Struct[K]> }, AtomIO$1.
|
|
17
|
+
}, store?: Store): [{ [K in keyof Struct as `${Key}${Capitalize<K & string>}State`]: AtomIO$1.RegularAtomToken<Struct[K]> }, AtomIO$1.ReadonlyPureSelectorToken<Struct>];
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/data/struct-family.d.ts
|
|
21
21
|
declare function structFamily<Struct extends object, Key extends string>(options: {
|
|
22
22
|
key: Key;
|
|
23
23
|
default: Struct;
|
|
24
|
-
}): [{ [K in keyof Struct as `find${Capitalize<Key & string>}${Capitalize<K & string>}State`]: AtomIO.RegularAtomFamilyToken<Struct[K], string> }, AtomIO.
|
|
24
|
+
}): [{ [K in keyof Struct as `find${Capitalize<Key & string>}${Capitalize<K & string>}State`]: AtomIO.RegularAtomFamilyToken<Struct[K], string> }, AtomIO.ReadonlyPureSelectorFamilyToken<Struct, string>];
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
export { dict, struct, structFamily };
|
package/dist/data/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["family:\n\t\t| AtomIO.
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["family:\n\t\t| AtomIO.ReadonlyPureSelectorFamilyToken<State, Key>\n\t\t| AtomIO.RegularAtomFamilyToken<State, Key>\n\t\t| AtomIO.WritablePureSelectorFamilyToken<State, Key>","index:\n\t\t| AtomIO.ReadonlyPureSelectorToken<Key[]>\n\t\t| AtomIO.RegularAtomToken<Key[]>\n\t\t| AtomIO.WritablePureSelectorToken<Key[]>","store: Store","options: {\n\t\tkey: Key\n\t\tdefault: Struct\n\t}","store: Store","options: {\n\tkey: Key\n\tdefault: Struct\n}"],"sources":["../../src/data/dict.ts","../../src/data/struct.ts","../../src/data/struct-family.ts"],"sourcesContent":[],"mappings":";;;;;;;iBASgB,wBAAwB,mBAEpC,QAAA,CAAO,gCAAgC,OAAO,OAC9C,QAAA,CAAO,uBAAuB,OAAO,OACrC,QAAA,CAAO,gCAAgC,OAAO,aAE9C,QAAA,CAAO,0BAA0B,SACjC,QAAA,CAAO,iBAAiB,SACxB,QAAA,CAAO,0BAA0B,gBAC7B,QACL,QAAA,CAAO,kCAAkC,YAAY,OAAO;;;;iBCV/C;;sBDAhB,CAAA,OAAgB,EAAA;EAAA,GAAA,ECKT,GDLS;EAAA,OAAwB,ECM7B,MDN6B;CAAA,EAAA,KAEG,CAAA,ECMnC,KDNmC,CAAA,EAAA,CAAA,QAAA,MCS7B,MDT6B,IAAA,GCShB,GDTgB,GCSV,UDTU,CCUxC,CDVwC,GAAA,MAAA,CAAA,OAAA,GCW9B,QAAA,CAAO,gBDXuB,CCWN,MDXM,CCWC,CDXD,CAAA,CAAA,EAAA,ECa1C,QAAA,CAAO,yBDbmC,CCaT,MDbS,CAAA,CAAA;;;;iBEA3B;OAIV;WACI;AFPV,CAAA,CAAA,EAAgB,CAAA,QAAA,MEUF,MFVE,IAAA,OEUe,UFVf,CEU0B,GFV1B,GAAA,MAAA,CAAA,GEU0C,UFV1C,CEWb,CFXa,GAAA,MAAA,CAAA,OAAA,GEYH,MAAA,CAAO,sBFZJ,CEY2B,MFZ3B,CEYkC,CFZlC,CAAA,EAAA,MAAA,CAAA,EAAA,EEcf,MAAA,CAAO,+BFdQ,CEcwB,MFdxB,EAAA,MAAA,CAAA,CAAA"}
|
package/dist/data/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["family:\n\t\t| AtomIO.
|
|
1
|
+
{"version":3,"file":"index.js","names":["family:\n\t\t| AtomIO.ReadonlyPureSelectorFamilyToken<State, Key>\n\t\t| AtomIO.RegularAtomFamilyToken<State, Key>\n\t\t| AtomIO.WritablePureSelectorFamilyToken<State, Key>","index:\n\t\t| AtomIO.ReadonlyPureSelectorToken<Key[]>\n\t\t| AtomIO.RegularAtomToken<Key[]>\n\t\t| AtomIO.WritablePureSelectorToken<Key[]>","store: Store","options: {\n\t\tkey: Key\n\t\tdefault: Struct\n\t}","store: Store","atoms: {\n\t\t[K in keyof Struct as `${Key}${Capitalize<\n\t\t\tK & string\n\t\t>}State`]: AtomIO.RegularAtomToken<Struct[K]>\n\t}","topKey: string","subKey: string","options: {\n\tkey: Key\n\tdefault: Struct\n}","atoms: {\n\t\t[K in keyof Struct as `find${Capitalize<Key & string>}${Capitalize<\n\t\t\tK & string\n\t\t>}State`]: AtomIO.RegularAtomFamilyToken<Struct[K], string>\n\t}","findStructState: AtomIO.ReadonlyPureSelectorFamilyToken<Struct, string>"],"sources":["../../src/data/dict.ts","../../src/data/struct.ts","../../src/data/struct-family.ts"],"sourcesContent":["import type * as AtomIO from \"atom.io\"\nimport type { Store } from \"atom.io/internal\"\nimport {\n\tcreateStandaloneSelector,\n\tfindInStore,\n\tIMPLICIT,\n} from \"atom.io/internal\"\nimport type { Canonical, stringified } from \"atom.io/json\"\n\nexport function dict<State, Key extends Canonical>(\n\tfamily:\n\t\t| AtomIO.ReadonlyPureSelectorFamilyToken<State, Key>\n\t\t| AtomIO.RegularAtomFamilyToken<State, Key>\n\t\t| AtomIO.WritablePureSelectorFamilyToken<State, Key>,\n\tindex:\n\t\t| AtomIO.ReadonlyPureSelectorToken<Key[]>\n\t\t| AtomIO.RegularAtomToken<Key[]>\n\t\t| AtomIO.WritablePureSelectorToken<Key[]>,\n\tstore: Store = IMPLICIT.STORE,\n): AtomIO.ReadonlyPureSelectorToken<{ [K in stringified<Key>]: State }> {\n\treturn createStandaloneSelector(store, {\n\t\tkey: `${family.key}Dict`,\n\t\tget: ({ get }) => {\n\t\t\tconst keys = get(index)\n\t\t\treturn keys.reduce((acc, key) => {\n\t\t\t\tacc[key] = get(findInStore(store, family, key))\n\t\t\t\treturn acc\n\t\t\t}, {} as any)\n\t\t},\n\t})\n}\n","import type * as AtomIO from \"atom.io\"\nimport type { Store } from \"atom.io/internal\"\nimport {\n\tcapitalize,\n\tcreateRegularAtom,\n\tcreateStandaloneSelector,\n\tIMPLICIT,\n} from \"atom.io/internal\"\n\nexport function struct<\n\tStruct extends { [key: string]: unknown },\n\tKey extends string,\n>(\n\toptions: {\n\t\tkey: Key\n\t\tdefault: Struct\n\t},\n\tstore: Store = IMPLICIT.STORE,\n): [\n\t{\n\t\t[K in keyof Struct as `${Key}${Capitalize<\n\t\t\tK & string\n\t\t>}State`]: AtomIO.RegularAtomToken<Struct[K]>\n\t},\n\tAtomIO.ReadonlyPureSelectorToken<Struct>,\n] {\n\tconst atoms: {\n\t\t[K in keyof Struct as `${Key}${Capitalize<\n\t\t\tK & string\n\t\t>}State`]: AtomIO.RegularAtomToken<Struct[K]>\n\t} = Object.keys(options.default).reduce((acc, key) => {\n\t\tconst atomName = options.key + capitalize(key) + `State`\n\t\tacc[atomName] = createRegularAtom(\n\t\t\tstore,\n\t\t\t{\n\t\t\t\tkey: `${options.key}.${key}`,\n\t\t\t\tdefault: options.default[key],\n\t\t\t},\n\t\t\tundefined,\n\t\t)\n\t\treturn acc\n\t}, {} as any)\n\tconst structState = createStandaloneSelector(store, {\n\t\tkey: options.key,\n\t\tget: ({ get }) => {\n\t\t\treturn Object.keys(options.default).reduce((acc, key) => {\n\t\t\t\t// @ts-expect-error finicky\n\t\t\t\tacc[key] = get(atoms[options.key + capitalize(key) + `State`])\n\t\t\t\treturn acc\n\t\t\t}, {} as any)\n\t\t},\n\t})\n\treturn [atoms, structState]\n}\n","import type * as AtomIO from \"atom.io\"\nimport {\n\tcapitalize,\n\tcreateRegularAtomFamily,\n\tcreateSelectorFamily,\n\tIMPLICIT,\n} from \"atom.io/internal\"\n\nconst nameFamily = (topKey: string, subKey: string) =>\n\t`find` + capitalize(topKey) + capitalize(subKey) + `State`\n\nexport function structFamily<\n\tStruct extends object,\n\tKey extends string,\n>(options: {\n\tkey: Key\n\tdefault: Struct\n}): [\n\t{\n\t\t[K in keyof Struct as `find${Capitalize<Key & string>}${Capitalize<\n\t\t\tK & string\n\t\t>}State`]: AtomIO.RegularAtomFamilyToken<Struct[K], string>\n\t},\n\tAtomIO.ReadonlyPureSelectorFamilyToken<Struct, string>,\n] {\n\tconst atoms: {\n\t\t[K in keyof Struct as `find${Capitalize<Key & string>}${Capitalize<\n\t\t\tK & string\n\t\t>}State`]: AtomIO.RegularAtomFamilyToken<Struct[K], string>\n\t} = Object.keys(options.default).reduce((acc, subKey) => {\n\t\tconst atomFamilyName = nameFamily(options.key, subKey)\n\t\tacc[atomFamilyName] = createRegularAtomFamily(IMPLICIT.STORE, {\n\t\t\tkey: `${options.key}.${subKey}`,\n\t\t\tdefault: (options.default as any)[subKey],\n\t\t})\n\t\treturn acc\n\t}, {} as any)\n\tconst findStructState: AtomIO.ReadonlyPureSelectorFamilyToken<Struct, string> =\n\t\tcreateSelectorFamily(IMPLICIT.STORE, {\n\t\t\tkey: options.key,\n\t\t\tget:\n\t\t\t\t(id) =>\n\t\t\t\t({ find, get }) => {\n\t\t\t\t\treturn Object.keys(options.default).reduce((acc, subKey) => {\n\t\t\t\t\t\tacc[subKey] = get(\n\t\t\t\t\t\t\tfind((atoms as any)[nameFamily(options.key, subKey)], id),\n\t\t\t\t\t\t)\n\t\t\t\t\t\treturn acc\n\t\t\t\t\t}, {} as any)\n\t\t\t\t},\n\t\t})\n\treturn [atoms, findStructState]\n}\n"],"mappings":";;;AASA,SAAgB,KACfA,QAIAC,OAIAC,QAAe,SAAS,OAC+C;AACvE,QAAO,yBAAyB,OAAO;EACtC,MAAM,EAAE,OAAO,IAAI;EACnB,KAAK,CAAC,EAAE,KAAK,KAAK;GACjB,MAAM,OAAO,IAAI,MAAM;AACvB,UAAO,KAAK,OAAO,CAAC,KAAK,QAAQ;AAChC,QAAI,OAAO,IAAI,YAAY,OAAO,QAAQ,IAAI,CAAC;AAC/C,WAAO;GACP,GAAE,CAAE,EAAQ;EACb;CACD,EAAC;AACF;;;;ACrBD,SAAgB,OAIfC,SAIAC,QAAe,SAAS,OAQvB;CACD,MAAMC,QAIF,OAAO,KAAK,QAAQ,QAAQ,CAAC,OAAO,CAAC,KAAK,QAAQ;EACrD,MAAM,WAAW,QAAQ,MAAM,WAAW,IAAI,IAAI;AAClD,MAAI,YAAY,kBACf,OACA;GACC,MAAM,EAAE,QAAQ,IAAI,GAAG,IAAI;GAC3B,SAAS,QAAQ,QAAQ;EACzB,UAED;AACD,SAAO;CACP,GAAE,CAAE,EAAQ;CACb,MAAM,cAAc,yBAAyB,OAAO;EACnD,KAAK,QAAQ;EACb,KAAK,CAAC,EAAE,KAAK,KAAK;AACjB,UAAO,OAAO,KAAK,QAAQ,QAAQ,CAAC,OAAO,CAAC,KAAK,QAAQ;AAExD,QAAI,OAAO,IAAI,MAAM,QAAQ,MAAM,WAAW,IAAI,IAAI,QAAQ;AAC9D,WAAO;GACP,GAAE,CAAE,EAAQ;EACb;CACD,EAAC;AACF,QAAO,CAAC,OAAO,WAAY;AAC3B;;;;AC7CD,MAAM,aAAa,CAACC,QAAgBC,YAClC,QAAQ,WAAW,OAAO,GAAG,WAAW,OAAO,IAAI;AAErD,SAAgB,aAGdC,SAUA;CACD,MAAMC,QAIF,OAAO,KAAK,QAAQ,QAAQ,CAAC,OAAO,CAAC,KAAK,WAAW;EACxD,MAAM,iBAAiB,WAAW,QAAQ,KAAK,OAAO;AACtD,MAAI,kBAAkB,wBAAwB,SAAS,OAAO;GAC7D,MAAM,EAAE,QAAQ,IAAI,GAAG,OAAO;GAC9B,SAAU,QAAQ,QAAgB;EAClC,EAAC;AACF,SAAO;CACP,GAAE,CAAE,EAAQ;CACb,MAAMC,kBACL,qBAAqB,SAAS,OAAO;EACpC,KAAK,QAAQ;EACb,KACC,CAAC,OACD,CAAC,EAAE,MAAM,KAAK,KAAK;AAClB,UAAO,OAAO,KAAK,QAAQ,QAAQ,CAAC,OAAO,CAAC,KAAK,WAAW;AAC3D,QAAI,UAAU,IACb,KAAM,MAAc,WAAW,QAAQ,KAAK,OAAO,GAAG,GAAG,CACzD;AACD,WAAO;GACP,GAAE,CAAE,EAAQ;EACb;CACF,EAAC;AACH,QAAO,CAAC,OAAO,eAAgB;AAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["explicitStateTypes: ESLintUtils.RuleModule<\n\t`noTypeArgument`,\n\t[],\n\tunknown,\n\tESLintUtils.RuleListener\n>","synchronousSelectorDependencies: {\n\tmeta: {\n\t\ttype: RuleType\n\t\tdocs: {\n\t\t\tdescription: string\n\t\t\tcategory: string\n\t\t\trecommended: boolean\n\t\t\turl: string\n\t\t}\n\t\tschema: never[]\n\t}\n\tcreate(context: Rule.RuleContext): Rule.NodeListener\n}","context: Rule.RuleContext","plugin: ESLint.Plugin"],"sources":["../../src/eslint-plugin/rules/explicit-state-types.ts","../../src/eslint-plugin/rules/synchronous-selector-dependencies.ts","../../src/eslint-plugin/rules/index.ts","../../src/eslint-plugin/index.ts"],"sourcesContent":
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["explicitStateTypes: ESLintUtils.RuleModule<\n\t`noTypeArgument`,\n\t[],\n\tunknown,\n\tESLintUtils.RuleListener\n>","synchronousSelectorDependencies: {\n\tmeta: {\n\t\ttype: RuleType\n\t\tdocs: {\n\t\t\tdescription: string\n\t\t\tcategory: string\n\t\t\trecommended: boolean\n\t\t\turl: string\n\t\t}\n\t\tschema: never[]\n\t}\n\tcreate(context: Rule.RuleContext): Rule.NodeListener\n}","context: Rule.RuleContext","plugin: ESLint.Plugin"],"sources":["../../src/eslint-plugin/rules/explicit-state-types.ts","../../src/eslint-plugin/rules/synchronous-selector-dependencies.ts","../../src/eslint-plugin/rules/index.ts","../../src/eslint-plugin/index.ts"],"sourcesContent":[],"mappings":";;;;;;cASaA,oBAAoB,WAAA,CAAY,0CAI5C,WAAA,CAAY;;;;cCNAC;;UAEL;IDAR,IAAaD,EAAAA;MAIA,WAAA,EAAA,MAAA;MAAA,QAAZ,EAAA,MAAY;MAAA,WAJoB,EAAA,OAAY;MAAA,GAAA,EAAA,MAAA;;;;ECF7C,MAAaC,CAAAA,OAAAA,EAWI,IAAA,CAAK,WAXTA,CAAAA,EAWuB,IAAA,CAAK,YACxC;CAAA;;;;;;;;;cEbKE,QAAQ,MAAA,CAAO"}
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Func as Func$1, Store as Store$1 } from "atom.io/internal";
|
|
2
2
|
import { Canonical, Json, JsonInterface, stringified } from "atom.io/json";
|
|
3
|
-
import { Above, ActorToolkit, Anarchy, AtomFamilyToken, AtomIOLogger, AtomIOToken, AtomToken, Claim, CompoundFrom, CompoundTypedKey, FamilyMetadata, Hierarchy, JoinOptions, JoinStates, JoinToken, KeyedStateUpdate, Logger, MoleculeCreation, MoleculeDisposal, MoleculeTransfer, MutableAtomFamilyOptions, MutableAtomFamilyToken, MutableAtomOptions, MutableAtomToken, ReadableFamilyToken, ReadableToken,
|
|
3
|
+
import { Above, ActorToolkit, Anarchy, AtomFamilyToken, AtomIOLogger, AtomIOToken, AtomToken, Claim, CompoundFrom, CompoundTypedKey, FamilyMetadata, HeldSelectorFamilyToken, HeldSelectorToken, Hierarchy, JoinOptions, JoinStates, JoinToken, KeyedStateUpdate, Logger, MoleculeCreation, MoleculeDisposal, MoleculeTransfer, MutableAtomFamilyOptions, MutableAtomFamilyToken, MutableAtomOptions, MutableAtomToken, PureSelectorFamilyToken, PureSelectorToken, ReadableFamilyToken, ReadableToken, ReadonlyHeldSelectorFamilyOptions, ReadonlyHeldSelectorFamilyToken, ReadonlyHeldSelectorOptions, ReadonlyHeldSelectorToken, ReadonlyPureSelectorFamilyOptions, ReadonlyPureSelectorFamilyToken, ReadonlyPureSelectorOptions, ReadonlyPureSelectorToken, ReadonlySelectorFamilyToken, ReadonlySelectorToken, RegularAtomFamilyOptions, RegularAtomFamilyToken, RegularAtomOptions, RegularAtomToken, SelectorFamilyToken, SelectorToken, SetterToolkit, SingularTypedKey, StateCreation, StateDisposal, StateUpdate, TimelineManageable, TimelineOptions, TimelineToken, TimelineUpdate, TokenType, TransactionOptions, TransactionToken, TransactionUpdate, TransactionUpdateHandler, UpdateHandler, Vassal, WritableFamilyToken, WritableHeldSelectorFamilyOptions, WritableHeldSelectorFamilyToken, WritableHeldSelectorOptions, WritableHeldSelectorToken, WritablePureSelectorFamilyOptions, WritablePureSelectorFamilyToken, WritablePureSelectorOptions, WritablePureSelectorToken, WritableSelectorFamilyToken, WritableSelectorToken, WritableToken } from "atom.io";
|
|
4
4
|
import { SetRTX, SetRTXJson } from "atom.io/transceivers/set-rtx";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/store/circular-buffer.d.ts
|
|
@@ -19,16 +19,18 @@ declare class CircularBuffer<T> {
|
|
|
19
19
|
//#region src/internal/store/counterfeit.d.ts
|
|
20
20
|
declare const FAMILY_MEMBER_TOKEN_TYPES: {
|
|
21
21
|
readonly atom_family: "atom";
|
|
22
|
-
readonly mutable_atom_family: "mutable_atom";
|
|
23
|
-
readonly selector_family: "selector";
|
|
24
|
-
readonly readonly_selector_family: "readonly_selector";
|
|
25
22
|
readonly molecule_family: "molecule";
|
|
23
|
+
readonly mutable_atom_family: "mutable_atom";
|
|
24
|
+
readonly readonly_held_selector_family: "readonly_held_selector";
|
|
25
|
+
readonly readonly_pure_selector_family: "readonly_pure_selector";
|
|
26
|
+
readonly writable_held_selector_family: "writable_held_selector";
|
|
27
|
+
readonly writable_pure_selector_family: "writable_pure_selector";
|
|
26
28
|
};
|
|
27
29
|
declare function counterfeit<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J>;
|
|
28
30
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T>;
|
|
29
31
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: AtomFamilyToken<T, K>, key: Key): AtomToken<T>;
|
|
30
|
-
declare function counterfeit<T, K extends Canonical, Key extends K>(token:
|
|
31
|
-
declare function counterfeit<T, K extends Canonical, Key extends K>(token:
|
|
32
|
+
declare function counterfeit<T, K extends Canonical, Key extends K>(token: WritablePureSelectorFamilyToken<T, K>, key: Key): WritablePureSelectorToken<T>;
|
|
33
|
+
declare function counterfeit<T, K extends Canonical, Key extends K>(token: ReadonlyPureSelectorFamilyToken<T, K>, key: Key): ReadonlyPureSelectorToken<T>;
|
|
32
34
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T>;
|
|
33
35
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: WritableFamilyToken<T, K>, key: Key): WritableToken<T>;
|
|
34
36
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T>;
|
|
@@ -77,7 +79,7 @@ type JunctionAdvancedConfiguration<AType extends string, BType extends string, C
|
|
|
77
79
|
makeContentKey?: (a: AType, b: BType) => string;
|
|
78
80
|
};
|
|
79
81
|
type JunctionJSON<ASide extends string, AType extends string, BSide extends string, BType extends string, Content extends Json.Object | null> = JunctionEntries<AType, BType, Content> & JunctionSchema<ASide, BSide>;
|
|
80
|
-
declare class Junction<ASide extends string, AType extends string, BSide extends string, BType extends string, Content extends Json.Object | null = null> {
|
|
82
|
+
declare class Junction<const ASide extends string, const AType extends string, const BSide extends string, const BType extends string, const Content extends Json.Object | null = null> {
|
|
81
83
|
readonly a: ASide;
|
|
82
84
|
readonly b: BSide;
|
|
83
85
|
readonly cardinality: `1:1` | `1:n` | `n:n`;
|
|
@@ -213,16 +215,16 @@ type TransactionEpoch = {
|
|
|
213
215
|
declare function deposit<T>(state: RegularAtom<T>): RegularAtomToken<T>;
|
|
214
216
|
declare function deposit<T extends Transceiver<any>>(state: MutableAtom<T, any>): MutableAtomToken<T, any>;
|
|
215
217
|
declare function deposit<T>(state: Atom<T>): AtomToken<T>;
|
|
216
|
-
declare function deposit<T>(state:
|
|
217
|
-
declare function deposit<T>(state:
|
|
218
|
+
declare function deposit<T>(state: WritablePureSelector<T>): WritablePureSelectorToken<T>;
|
|
219
|
+
declare function deposit<T>(state: ReadonlyPureSelector<T>): ReadonlyPureSelectorToken<T>;
|
|
218
220
|
declare function deposit<T>(state: Selector<T>): SelectorToken<T>;
|
|
219
221
|
declare function deposit<T>(state: WritableState<T>): WritableToken<T>;
|
|
220
222
|
declare function deposit<T>(state: ReadableState<T>): ReadableToken<T>;
|
|
221
223
|
declare function deposit<T, K extends Canonical>(state: RegularAtomFamily<T, K>): RegularAtomFamilyToken<T, K>;
|
|
222
224
|
declare function deposit<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(state: MutableAtomFamily<T, J, K>): MutableAtomFamilyToken<T, J, K>;
|
|
223
225
|
declare function deposit<T>(state: AtomFamily<T, any>): AtomFamilyToken<T, any>;
|
|
224
|
-
declare function deposit<T>(state:
|
|
225
|
-
declare function deposit<T>(state:
|
|
226
|
+
declare function deposit<T>(state: WritablePureSelectorFamily<T, any>): WritablePureSelectorFamilyToken<T, any>;
|
|
227
|
+
declare function deposit<T>(state: ReadonlyPureSelectorFamily<T, any>): ReadonlyPureSelectorFamilyToken<T, any>;
|
|
226
228
|
declare function deposit<T>(state: SelectorFamily<T, any>): SelectorFamilyToken<T, any>;
|
|
227
229
|
declare function deposit<T>(state: WritableFamily<T, any>): WritableFamilyToken<T, any>;
|
|
228
230
|
declare function deposit<T>(state: ReadableFamily<T, any>): ReadableFamilyToken<T, any>;
|
|
@@ -257,8 +259,8 @@ declare function claimWithinStore<H extends Hierarchy, V extends Exclude<Vassal<
|
|
|
257
259
|
|
|
258
260
|
//#endregion
|
|
259
261
|
//#region src/internal/join/join-internal.d.ts
|
|
260
|
-
type JoinStateFamilies<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null> = Cardinality extends `1:1` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]:
|
|
261
|
-
declare class Join<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null = null, ContentKey extends CompoundTypedKey<`content`, ASide, BSide> = CompoundTypedKey<`content`, ASide, BSide>> {
|
|
262
|
+
type JoinStateFamilies<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null> = Cardinality extends `1:1` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntryOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content] | null, AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeyOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType | null, AType> } : Cardinality extends `1:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType[], AType> } : Cardinality extends `n:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntriesOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content][], BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeysOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType[], BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType[], AType> } : never;
|
|
263
|
+
declare class Join<const ASide extends string, const AType extends string, const BSide extends string, const BType extends string, const Cardinality extends `1:1` | `1:n` | `n:n`, const Content extends Json.Object | null = null, const ContentKey extends CompoundTypedKey<`content`, ASide, BSide> = CompoundTypedKey<`content`, ASide, BSide>> {
|
|
262
264
|
private toolkit;
|
|
263
265
|
options: JoinOptions<ASide, AType, BSide, BType, Cardinality, Content>;
|
|
264
266
|
defaultContent: Content | undefined;
|
|
@@ -281,6 +283,7 @@ declare function getJoin<ASide extends string, AType extends string, BSide exten
|
|
|
281
283
|
|
|
282
284
|
//#endregion
|
|
283
285
|
//#region src/internal/lineage.d.ts
|
|
286
|
+
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */
|
|
284
287
|
interface Lineage {
|
|
285
288
|
parent: typeof this | null;
|
|
286
289
|
child: typeof this | null;
|
|
@@ -361,7 +364,7 @@ declare class Store implements Lineage {
|
|
|
361
364
|
valueMap: Map<string, any>;
|
|
362
365
|
defaults: Map<string, any>;
|
|
363
366
|
atoms: Map<string, Atom<any>>;
|
|
364
|
-
|
|
367
|
+
writableSelectors: Map<string, WritableSelector<any>>;
|
|
365
368
|
readonlySelectors: Map<string, ReadonlySelector<any>>;
|
|
366
369
|
atomsThatAreDefault: Set<string>;
|
|
367
370
|
selectorAtoms: Junction<`selectorKey`, string, `atomKey`, string>;
|
|
@@ -369,7 +372,7 @@ declare class Store implements Lineage {
|
|
|
369
372
|
source: string;
|
|
370
373
|
}>;
|
|
371
374
|
trackers: Map<string, Tracker<Transceiver<any>>>;
|
|
372
|
-
families: Map<string,
|
|
375
|
+
families: Map<string, HeldSelectorFamily<any, any> | MutableAtomFamily<any, any, any> | PureSelectorFamily<any, any> | RegularAtomFamily<any, any>>;
|
|
373
376
|
joins: Map<string, Join<any, any, any, any, any, any>>;
|
|
374
377
|
transactions: Map<string, Transaction<Func>>;
|
|
375
378
|
transactionMeta: TransactionEpoch | TransactionProgress<Func>;
|
|
@@ -401,8 +404,8 @@ declare class Store implements Lineage {
|
|
|
401
404
|
type StoreEventCarrier = {
|
|
402
405
|
atomCreation: Subject<AtomToken<unknown>>;
|
|
403
406
|
atomDisposal: Subject<AtomToken<unknown>>;
|
|
404
|
-
selectorCreation: Subject<
|
|
405
|
-
selectorDisposal: Subject<
|
|
407
|
+
selectorCreation: Subject<SelectorToken<unknown>>;
|
|
408
|
+
selectorDisposal: Subject<SelectorToken<unknown>>;
|
|
406
409
|
timelineCreation: Subject<TimelineToken<unknown>>;
|
|
407
410
|
transactionCreation: Subject<TransactionToken<Func>>;
|
|
408
411
|
transactionApplying: StatefulSubject<TransactionProgress<Func> | null>;
|
|
@@ -423,16 +426,28 @@ declare const clearStore: (store: Store) => void;
|
|
|
423
426
|
declare function withdraw<T>(store: Store, token: RegularAtomToken<T>): RegularAtom<T>;
|
|
424
427
|
declare function withdraw<T extends Transceiver<any>>(store: Store, token: MutableAtomToken<T, any>): MutableAtom<T, any>;
|
|
425
428
|
declare function withdraw<T>(store: Store, token: AtomToken<T>): Atom<T>;
|
|
426
|
-
declare function withdraw<T>(store: Store, token:
|
|
429
|
+
declare function withdraw<T>(store: Store, token: WritableHeldSelectorToken<T>): WritableHeldSelector<T>;
|
|
430
|
+
declare function withdraw<T>(store: Store, token: ReadonlyHeldSelectorToken<T>): ReadonlyHeldSelector<T>;
|
|
431
|
+
declare function withdraw<T>(store: Store, token: WritablePureSelectorToken<T>): WritablePureSelector<T>;
|
|
432
|
+
declare function withdraw<T>(store: Store, token: ReadonlyPureSelectorToken<T>): ReadonlyPureSelector<T>;
|
|
427
433
|
declare function withdraw<T>(store: Store, token: ReadonlySelectorToken<T>): ReadonlySelector<T>;
|
|
434
|
+
declare function withdraw<T>(store: Store, token: WritableSelectorToken<T>): WritableSelector<T>;
|
|
435
|
+
declare function withdraw<T>(store: Store, token: HeldSelectorToken<T>): HeldSelector<T>;
|
|
436
|
+
declare function withdraw<T>(store: Store, token: PureSelectorToken<T>): PureSelector<T>;
|
|
428
437
|
declare function withdraw<T>(store: Store, token: SelectorToken<T>): Selector<T>;
|
|
429
438
|
declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableState<T>;
|
|
430
439
|
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
431
440
|
declare function withdraw<T, K extends Canonical>(store: Store, token: RegularAtomFamilyToken<T, K>): RegularAtomFamily<T, K>;
|
|
432
441
|
declare function withdraw<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, token: MutableAtomFamilyToken<T, J, K>): MutableAtomFamily<T, J, K>;
|
|
433
442
|
declare function withdraw<T, K extends Canonical>(store: Store, token: AtomFamilyToken<T>): AtomFamily<T, any>;
|
|
443
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyHeldSelectorFamilyToken<T, K>): ReadonlyHeldSelectorFamily<T, any>;
|
|
444
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableHeldSelectorFamilyToken<T, K>): WritableHeldSelectorFamily<T, any>;
|
|
445
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>): ReadonlyPureSelectorFamily<T, any>;
|
|
446
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritablePureSelectorFamilyToken<T, K>): WritablePureSelectorFamily<T, any>;
|
|
434
447
|
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlySelectorFamilyToken<T, K>): ReadonlySelectorFamily<T, any>;
|
|
435
448
|
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableSelectorFamilyToken<T, K>): WritableSelectorFamily<T, any>;
|
|
449
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: HeldSelectorFamilyToken<T, K>): HeldSelectorFamily<T, any>;
|
|
450
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: PureSelectorFamilyToken<T, K>): PureSelectorFamily<T, any>;
|
|
436
451
|
declare function withdraw<T, K extends Canonical>(store: Store, token: SelectorFamilyToken<T, K>): SelectorFamily<T, any>;
|
|
437
452
|
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>): ReadableFamily<T, any>;
|
|
438
453
|
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableFamilyToken<T, K>): WritableFamily<T, any>;
|
|
@@ -465,11 +480,11 @@ declare function createMutableAtomFamily<T extends Transceiver<any>, J extends J
|
|
|
465
480
|
|
|
466
481
|
//#endregion
|
|
467
482
|
//#region src/internal/mutable/get-json-family.d.ts
|
|
468
|
-
declare const getJsonFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends Canonical>(mutableAtomFamily: MutableAtomFamilyToken<Core, SerializableCore, Key>, store: Store) =>
|
|
483
|
+
declare const getJsonFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends Canonical>(mutableAtomFamily: MutableAtomFamilyToken<Core, SerializableCore, Key>, store: Store) => WritablePureSelectorFamily<SerializableCore, Key>;
|
|
469
484
|
|
|
470
485
|
//#endregion
|
|
471
486
|
//#region src/internal/mutable/get-json-token.d.ts
|
|
472
|
-
declare const getJsonToken: <Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(store: Store, mutableAtomToken: MutableAtomToken<Core, SerializableCore>) =>
|
|
487
|
+
declare const getJsonToken: <Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(store: Store, mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => WritablePureSelectorToken<SerializableCore>;
|
|
473
488
|
|
|
474
489
|
//#endregion
|
|
475
490
|
//#region src/internal/mutable/get-update-family.d.ts
|
|
@@ -569,8 +584,8 @@ declare function createAtomFamily<T extends Transceiver<any>, J extends Json.Ser
|
|
|
569
584
|
declare function createAtomFamily<T, K extends Canonical>(store: Store, options: RegularAtomFamilyOptions<T, K>): RegularAtomFamilyToken<T, K>;
|
|
570
585
|
|
|
571
586
|
//#endregion
|
|
572
|
-
//#region src/internal/families/create-readonly-selector-family.d.ts
|
|
573
|
-
declare function
|
|
587
|
+
//#region src/internal/families/create-readonly-pure-selector-family.d.ts
|
|
588
|
+
declare function createReadonlyPureSelectorFamily<T, K extends Canonical>(store: Store, options: ReadonlyPureSelectorFamilyOptions<T, K>, internalRoles?: string[]): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
574
589
|
|
|
575
590
|
//#endregion
|
|
576
591
|
//#region src/internal/families/create-regular-atom-family.d.ts
|
|
@@ -578,12 +593,14 @@ declare function createRegularAtomFamily<T, K extends Canonical>(store: Store, o
|
|
|
578
593
|
|
|
579
594
|
//#endregion
|
|
580
595
|
//#region src/internal/families/create-selector-family.d.ts
|
|
581
|
-
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options:
|
|
582
|
-
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options:
|
|
596
|
+
declare function createSelectorFamily<T extends object, K extends Canonical>(store: Store, options: WritableHeldSelectorFamilyOptions<T, K>): WritableHeldSelectorFamilyToken<T, K>;
|
|
597
|
+
declare function createSelectorFamily<T extends object, K extends Canonical>(store: Store, options: ReadonlyHeldSelectorFamilyOptions<T, K>): ReadonlyHeldSelectorFamilyToken<T, K>;
|
|
598
|
+
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>): WritablePureSelectorFamilyToken<T, K>;
|
|
599
|
+
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options: ReadonlyPureSelectorFamilyOptions<T, K>): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
583
600
|
|
|
584
601
|
//#endregion
|
|
585
|
-
//#region src/internal/families/create-writable-selector-family.d.ts
|
|
586
|
-
declare function
|
|
602
|
+
//#region src/internal/families/create-writable-pure-selector-family.d.ts
|
|
603
|
+
declare function createWritablePureSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>, internalRoles?: string[]): WritablePureSelectorFamilyToken<T, K>;
|
|
587
604
|
|
|
588
605
|
//#endregion
|
|
589
606
|
//#region src/internal/families/dispose-from-store.d.ts
|
|
@@ -595,8 +612,8 @@ declare function disposeFromStore<K extends Canonical>(store: Store, token: Read
|
|
|
595
612
|
declare function findInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
|
|
596
613
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T, K>;
|
|
597
614
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: AtomFamilyToken<T, K>, key: Key): AtomToken<T, K>;
|
|
598
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token:
|
|
599
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token:
|
|
615
|
+
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritablePureSelectorFamilyToken<T, K>, key: Key): WritablePureSelectorToken<T, K>;
|
|
616
|
+
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>, key: Key): ReadonlyPureSelectorToken<T, K>;
|
|
600
617
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
601
618
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
602
619
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
@@ -606,8 +623,8 @@ declare function findInStore<T, K extends Canonical, Key extends K>(store: Store
|
|
|
606
623
|
declare function initFamilyMemberInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
|
|
607
624
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T, K>;
|
|
608
625
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: AtomFamilyToken<T, K>, key: Key): AtomToken<T, K>;
|
|
609
|
-
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token:
|
|
610
|
-
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token:
|
|
626
|
+
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritablePureSelectorFamilyToken<T, K>, key: Key): WritablePureSelectorToken<T, K>;
|
|
627
|
+
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>, key: Key): ReadonlyPureSelectorToken<T, K>;
|
|
611
628
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
612
629
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
613
630
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
@@ -617,8 +634,8 @@ declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(
|
|
|
617
634
|
declare function seekInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K> | undefined;
|
|
618
635
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T, K> | undefined;
|
|
619
636
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: AtomFamilyToken<T, K>, key: Key): AtomToken<T, K> | undefined;
|
|
620
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token:
|
|
621
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token:
|
|
637
|
+
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritablePureSelectorFamilyToken<T, K>, key: Key): WritablePureSelectorToken<T, K> | undefined;
|
|
638
|
+
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>, key: Key): ReadonlyPureSelectorToken<T, K> | undefined;
|
|
622
639
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K> | undefined;
|
|
623
640
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K> | undefined;
|
|
624
641
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K> | undefined;
|
|
@@ -724,17 +741,27 @@ type ReservedIntrospectionKey = `🔍 ${string}`;
|
|
|
724
741
|
declare function isReservedIntrospectionKey(value: string): value is ReservedIntrospectionKey;
|
|
725
742
|
|
|
726
743
|
//#endregion
|
|
727
|
-
//#region src/internal/selector/create-readonly-selector.d.ts
|
|
728
|
-
declare const
|
|
744
|
+
//#region src/internal/selector/create-readonly-held-selector.d.ts
|
|
745
|
+
declare const createReadonlyHeldSelector: <T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>, family: FamilyMetadata | undefined) => ReadonlyHeldSelectorToken<T>;
|
|
746
|
+
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region src/internal/selector/create-readonly-pure-selector.d.ts
|
|
749
|
+
declare const createReadonlyPureSelector: <T>(store: Store, options: ReadonlyPureSelectorOptions<T>, family: FamilyMetadata | undefined) => ReadonlyPureSelectorToken<T>;
|
|
729
750
|
|
|
730
751
|
//#endregion
|
|
731
752
|
//#region src/internal/selector/create-standalone-selector.d.ts
|
|
732
|
-
declare function createStandaloneSelector<T>(store: Store, options:
|
|
733
|
-
declare function createStandaloneSelector<T>(store: Store, options:
|
|
753
|
+
declare function createStandaloneSelector<T extends object>(store: Store, options: WritableHeldSelectorOptions<T>): WritableHeldSelectorToken<T>;
|
|
754
|
+
declare function createStandaloneSelector<T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>): ReadonlyHeldSelectorToken<T>;
|
|
755
|
+
declare function createStandaloneSelector<T>(store: Store, options: WritablePureSelectorOptions<T>): WritablePureSelectorToken<T>;
|
|
756
|
+
declare function createStandaloneSelector<T>(store: Store, options: ReadonlyPureSelectorOptions<T>): ReadonlyPureSelectorToken<T>;
|
|
734
757
|
|
|
735
758
|
//#endregion
|
|
736
|
-
//#region src/internal/selector/create-writable-selector.d.ts
|
|
737
|
-
declare const
|
|
759
|
+
//#region src/internal/selector/create-writable-held-selector.d.ts
|
|
760
|
+
declare const createWritableHeldSelector: <T extends object>(store: Store, options: WritableHeldSelectorOptions<T>, family: FamilyMetadata | undefined) => WritableHeldSelectorToken<T>;
|
|
761
|
+
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region src/internal/selector/create-writable-pure-selector.d.ts
|
|
764
|
+
declare const createWritablePureSelector: <T>(store: Store, options: WritablePureSelectorOptions<T>, family: FamilyMetadata | undefined) => WritablePureSelectorToken<T>;
|
|
738
765
|
|
|
739
766
|
//#endregion
|
|
740
767
|
//#region src/internal/selector/dispose-selector.d.ts
|
|
@@ -742,20 +769,20 @@ declare function disposeSelector(store: Store, selectorToken: SelectorToken<unkn
|
|
|
742
769
|
|
|
743
770
|
//#endregion
|
|
744
771
|
//#region src/internal/selector/get-selector-dependency-keys.d.ts
|
|
745
|
-
declare const getSelectorDependencyKeys: (
|
|
772
|
+
declare const getSelectorDependencyKeys: (store: Store, key: string) => (AtomKey<unknown> | ReadonlySelectorKey<unknown> | SelectorKey<unknown>)[];
|
|
746
773
|
|
|
747
774
|
//#endregion
|
|
748
775
|
//#region src/internal/selector/register-selector.d.ts
|
|
749
|
-
declare const registerSelector: (selectorKey: string, covered: Set<string
|
|
776
|
+
declare const registerSelector: (store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, covered: Set<string>) => SetterToolkit;
|
|
750
777
|
|
|
751
778
|
//#endregion
|
|
752
779
|
//#region src/internal/selector/trace-selector-atoms.d.ts
|
|
753
|
-
declare const traceSelectorAtoms: (directDependencyKey: StateKey<unknown>, covered: Set<string
|
|
780
|
+
declare const traceSelectorAtoms: (store: Store, directDependencyKey: StateKey<unknown>, covered: Set<string>) => AtomKey<unknown>[];
|
|
754
781
|
declare const traceAllSelectorAtoms: (selector: Selector<any>, store: Store) => AtomKey<unknown>[];
|
|
755
782
|
|
|
756
783
|
//#endregion
|
|
757
784
|
//#region src/internal/selector/update-selector-atoms.d.ts
|
|
758
|
-
declare const updateSelectorAtoms: (selectorKey: string, dependency:
|
|
785
|
+
declare const updateSelectorAtoms: (store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, dependency: ReadonlyPureSelectorToken<unknown> | WritableToken<unknown>, covered: Set<string>) => void;
|
|
759
786
|
|
|
760
787
|
//#endregion
|
|
761
788
|
//#region src/internal/set-state/become.d.ts
|
|
@@ -820,24 +847,41 @@ type MutableAtom<T extends Transceiver<any>, J extends Json.Serializable> = Atom
|
|
|
820
847
|
cleanup?: () => void;
|
|
821
848
|
};
|
|
822
849
|
type Atom<T> = RegularAtom<T> | (T extends Transceiver<any> ? MutableAtom<T, any> : never);
|
|
823
|
-
type
|
|
824
|
-
type: `
|
|
850
|
+
type WritableHeldSelector<T> = AtomIOState & {
|
|
851
|
+
type: `writable_held_selector`;
|
|
852
|
+
const: T;
|
|
825
853
|
get: () => T;
|
|
826
854
|
set: (newValue: T | ((oldValue: T) => T)) => void;
|
|
827
855
|
};
|
|
828
|
-
type
|
|
829
|
-
type: `
|
|
856
|
+
type ReadonlyHeldSelector<T> = AtomIOState & {
|
|
857
|
+
type: `readonly_held_selector`;
|
|
858
|
+
const: T;
|
|
830
859
|
get: () => T;
|
|
831
860
|
};
|
|
832
|
-
type
|
|
861
|
+
type WritablePureSelector<T> = AtomIOState & {
|
|
862
|
+
type: `writable_pure_selector`;
|
|
863
|
+
get: () => T;
|
|
864
|
+
set: (newValue: T | ((oldValue: T) => T)) => void;
|
|
865
|
+
};
|
|
866
|
+
type ReadonlyPureSelector<T> = AtomIOState & {
|
|
867
|
+
type: `readonly_pure_selector`;
|
|
868
|
+
get: () => T;
|
|
869
|
+
};
|
|
870
|
+
type ReadonlySelector<T> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T>;
|
|
871
|
+
type WritableSelector<T> = WritableHeldSelector<T> | WritablePureSelector<T>;
|
|
872
|
+
type HeldSelector<T> = ReadonlyHeldSelector<T> | WritableHeldSelector<T>;
|
|
873
|
+
type PureSelector<T> = ReadonlyPureSelector<T> | WritablePureSelector<T>;
|
|
874
|
+
type Selector<T> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T> | WritableHeldSelector<T> | WritablePureSelector<T>;
|
|
833
875
|
type WritableState<T> = Atom<T> | WritableSelector<T>;
|
|
834
876
|
type ReadableState<T> = Atom<T> | Selector<T>;
|
|
877
|
+
// biome-ignore format: intersection
|
|
835
878
|
type RegularAtomFamily<T, K extends Canonical> = RegularAtomFamilyToken<T, K> & {
|
|
836
879
|
(key: K): RegularAtomToken<T>;
|
|
837
880
|
subject: Subject<StateCreation<AtomToken<T>> | StateDisposal<AtomToken<T>>>;
|
|
838
881
|
install: (store: Store) => void;
|
|
839
882
|
internalRoles: string[] | undefined;
|
|
840
883
|
};
|
|
884
|
+
// biome-ignore format: intersection
|
|
841
885
|
type MutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical> = JsonInterface<T, J> & MutableAtomFamilyToken<T, J, K> & {
|
|
842
886
|
(key: K): MutableAtomToken<T, J>;
|
|
843
887
|
subject: Subject<StateCreation<MutableAtomToken<T, J>> | StateDisposal<MutableAtomToken<T, J>>>;
|
|
@@ -845,23 +889,43 @@ type MutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable,
|
|
|
845
889
|
internalRoles: string[] | undefined;
|
|
846
890
|
};
|
|
847
891
|
type AtomFamily<T, K extends Canonical = Canonical> = MutableAtomFamily<T extends Transceiver<any> ? T : never, any, K> | RegularAtomFamily<T, K>;
|
|
848
|
-
|
|
892
|
+
// biome-ignore format: intersection
|
|
893
|
+
type WritablePureSelectorFamily<T, K extends Canonical> = WritablePureSelectorFamilyToken<T, K> & ((key: K) => WritablePureSelectorToken<T>) & {
|
|
894
|
+
default: (key: K) => T;
|
|
895
|
+
subject: Subject<StateCreation<WritablePureSelectorToken<T>> | StateDisposal<WritablePureSelectorToken<T>>>;
|
|
896
|
+
install: (store: Store) => void;
|
|
897
|
+
internalRoles: string[] | undefined;
|
|
898
|
+
};
|
|
899
|
+
// biome-ignore format: intersection
|
|
900
|
+
type WritableHeldSelectorFamily<T, K extends Canonical> = WritableHeldSelectorFamilyToken<T, K> & ((key: K) => WritableHeldSelectorToken<T>) & {
|
|
901
|
+
default: (key: K) => T;
|
|
902
|
+
subject: Subject<StateCreation<WritableHeldSelectorToken<T>> | StateDisposal<WritableHeldSelectorToken<T>>>;
|
|
903
|
+
install: (store: Store) => void;
|
|
904
|
+
internalRoles: string[] | undefined;
|
|
905
|
+
};
|
|
906
|
+
// biome-ignore format: intersection
|
|
907
|
+
type ReadonlyPureSelectorFamily<T, K extends Canonical> = ReadonlyPureSelectorFamilyToken<T, K> & ((key: K) => ReadonlyPureSelectorToken<T>) & {
|
|
849
908
|
default: (key: K) => T;
|
|
850
|
-
subject: Subject<StateCreation<
|
|
909
|
+
subject: Subject<StateCreation<ReadonlyPureSelectorToken<T>> | StateDisposal<ReadonlyPureSelectorToken<T>>>;
|
|
851
910
|
install: (store: Store) => void;
|
|
852
911
|
internalRoles: string[] | undefined;
|
|
853
912
|
};
|
|
854
|
-
|
|
913
|
+
// biome-ignore format: intersection
|
|
914
|
+
type ReadonlyHeldSelectorFamily<T, K extends Canonical> = ReadonlyHeldSelectorFamilyToken<T, K> & ((key: K) => ReadonlyHeldSelectorToken<T>) & {
|
|
855
915
|
default: (key: K) => T;
|
|
856
|
-
subject: Subject<StateCreation<
|
|
916
|
+
subject: Subject<StateCreation<ReadonlyHeldSelectorToken<T>> | StateDisposal<ReadonlyHeldSelectorToken<T>>>;
|
|
857
917
|
install: (store: Store) => void;
|
|
858
918
|
internalRoles: string[] | undefined;
|
|
859
919
|
};
|
|
860
|
-
type
|
|
861
|
-
type
|
|
920
|
+
type PureSelectorFamily<T, K extends Canonical> = ReadonlyPureSelectorFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
921
|
+
type HeldSelectorFamily<T, K extends Canonical> = ReadonlyHeldSelectorFamily<T, K> | WritableHeldSelectorFamily<T, K>;
|
|
922
|
+
type ReadonlySelectorFamily<T, K extends Canonical> = ReadonlyHeldSelectorFamily<T, K> | ReadonlyPureSelectorFamily<T, K>;
|
|
923
|
+
type WritableSelectorFamily<T, K extends Canonical> = WritableHeldSelectorFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
924
|
+
type SelectorFamily<T, K extends Canonical> = HeldSelectorFamily<T, K> | PureSelectorFamily<T, K>;
|
|
925
|
+
type WritableFamily<T, K extends Canonical> = AtomFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
862
926
|
type ReadableFamily<T, K extends Canonical> = AtomFamily<T, K> | SelectorFamily<T, K>;
|
|
863
927
|
type AtomIOInternalResource = ReadableFamily<any, any> | ReadableState<any> | Timeline<any> | Transaction<any>;
|
|
864
928
|
|
|
865
929
|
//#endregion
|
|
866
|
-
export { Atom, AtomFamily, AtomIOInternalResource, AtomIOState, AtomKey, BaseExternalStoreConfiguration, ChildStore, CircularBuffer, Count, Each, Empty, EnvironmentData, ExternalStoreConfiguration, ExternalStoreWithContentConfiguration, FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Flat, Func, Future, IMPLICIT, Join, JoinStateFamilies, Junction, JunctionAdvancedConfiguration, JunctionEntries, JunctionEntriesBase, JunctionJSON, JunctionSchema, JunctionSchemaBase, LazyMap, Lineage, Modify, Molecule, MutableAtom, MutableAtomFamily, NotFoundError, OperationProgress, ReadableFamily, ReadableState, ReadonlySelector, ReadonlySelectorFamily, ReadonlySelectorKey, Refinement, RegularAtom, RegularAtomFamily, ReservedIntrospectionKey, RootStore, Selector, SelectorFamily, SelectorKey, Signal$1 as Signal, StateKey, StatefulSubject, Store, StoreEventCarrier, Subject, TRANSACTION_PHASES, Timeline, TimelineAtomUpdate, TimelineMoleculeCreation, TimelineMoleculeDisposal, TimelineSelectorUpdate, TimelineStateCreation, TimelineStateDisposal, TimelineTransactionUpdate, Tracker, Transaction, TransactionEpoch, TransactionPhase, TransactionProgress, Transceiver, TransceiverMode, WritableFamily, WritableSelector, WritableSelectorFamily, WritableState, abortTransaction, actUponStore, allocateIntoStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, cacheValue, capitalize, claimWithinStore, clearStore, closeOperation, counterfeit, createAtomFamily, createMutableAtom, createMutableAtomFamily,
|
|
930
|
+
export { Atom, AtomFamily, AtomIOInternalResource, AtomIOState, AtomKey, BaseExternalStoreConfiguration, ChildStore, CircularBuffer, Count, Each, Empty, EnvironmentData, ExternalStoreConfiguration, ExternalStoreWithContentConfiguration, FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Flat, Func, Future, HeldSelector, HeldSelectorFamily, IMPLICIT, Join, JoinStateFamilies, Junction, JunctionAdvancedConfiguration, JunctionEntries, JunctionEntriesBase, JunctionJSON, JunctionSchema, JunctionSchemaBase, LazyMap, Lineage, Modify, Molecule, MutableAtom, MutableAtomFamily, NotFoundError, OperationProgress, PureSelector, PureSelectorFamily, ReadableFamily, ReadableState, ReadonlyHeldSelector, ReadonlyHeldSelectorFamily, ReadonlyPureSelector, ReadonlyPureSelectorFamily, ReadonlySelector, ReadonlySelectorFamily, ReadonlySelectorKey, Refinement, RegularAtom, RegularAtomFamily, ReservedIntrospectionKey, RootStore, Selector, SelectorFamily, SelectorKey, Signal$1 as Signal, StateKey, StatefulSubject, Store, StoreEventCarrier, Subject, TRANSACTION_PHASES, Timeline, TimelineAtomUpdate, TimelineMoleculeCreation, TimelineMoleculeDisposal, TimelineSelectorUpdate, TimelineStateCreation, TimelineStateDisposal, TimelineTransactionUpdate, Tracker, Transaction, TransactionEpoch, TransactionPhase, TransactionProgress, Transceiver, TransceiverMode, WritableFamily, WritableHeldSelector, WritableHeldSelectorFamily, WritablePureSelector, WritablePureSelectorFamily, WritableSelector, WritableSelectorFamily, WritableState, abortTransaction, actUponStore, allocateIntoStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, cacheValue, capitalize, claimWithinStore, clearStore, closeOperation, counterfeit, createAtomFamily, createMutableAtom, createMutableAtomFamily, createReadonlyHeldSelector, createReadonlyPureSelector, createReadonlyPureSelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneAtom, createStandaloneSelector, createTimeline, createTransaction, createWritableHeldSelector, createWritablePureSelector, createWritablePureSelectorFamily, deallocateFromStore, deposit, disposeAtom, disposeFromStore, disposeSelector, editRelationsInStore, evictCachedValue, findInStore, findRelationsInStore, fuseWithinStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getInternalRelationsFromStore, getJoin, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getTrace, getUpdateFamily, getUpdateToken, ingestAtomUpdate, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestMoleculeTransferEvent, ingestSelectorUpdate, ingestTransactionUpdate, initFamilyMemberInStore, installIntoStore, isAtomDefault, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isReservedIntrospectionKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeRootMoleculeInStore, markAtomAsDefault, markAtomAsNotDefault, markDone, newest, openOperation, prettyPrintTokenType, readCachedValue, readOrComputeValue, recallState, registerSelector, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootAtoms, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceAllSelectorAtoms, traceSelectorAtoms, updateSelectorAtoms, withdraw };
|
|
867
931
|
//# sourceMappingURL=index.d.ts.map
|