@ember-data/tracking 5.5.0-alpha.20 → 5.5.0-alpha.21
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/README.md +14 -30
- package/dist/index.js +60 -27
- package/dist/index.js.map +1 -1
- package/package.json +8 -14
- package/unstable-preview-types/index.d.ts +15 -5
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/dist/-private.js +0 -415
- package/dist/-private.js.map +0 -1
- package/logos/NCC-1701-a-blue.svg +0 -4
- package/logos/NCC-1701-a-gold.svg +0 -4
- package/logos/NCC-1701-a-gold_100.svg +0 -1
- package/logos/NCC-1701-a-gold_base-64.txt +0 -1
- package/logos/NCC-1701-a.svg +0 -4
- package/logos/README.md +0 -4
- package/logos/docs-badge.svg +0 -2
- package/logos/ember-data-logo-dark.svg +0 -12
- package/logos/ember-data-logo-light.svg +0 -12
- package/logos/github-header.svg +0 -444
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +0 -4
- package/logos/warp-drive-logo-gold.svg +0 -4
- package/unstable-preview-types/-private.d.ts +0 -196
- package/unstable-preview-types/-private.d.ts.map +0 -1
package/logos/social1.png
DELETED
|
Binary file
|
package/logos/social2.png
DELETED
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 324 32">
|
|
2
|
-
<path fill="#110819"
|
|
3
|
-
d="M321.58 29.54a41.7 41.7 0 0 1-7.26 1.72c-2.4.36-4.87.53-7.4.53-3.21 0-6.09-.34-8.6-1.03a18.5 18.5 0 0 1-6.34-3.03 13.07 13.07 0 0 1-3.94-4.83c-.9-1.9-1.35-4.06-1.35-6.47a14.32 14.32 0 0 1 5.22-11.19 18.14 18.14 0 0 1 6.06-3.3c2.36-.81 5-1.21 7.9-1.21 2.68 0 5.13.36 7.35 1.1 2.24.71 4.15 1.78 5.74 3.2a14.28 14.28 0 0 1 3.72 5.24 18.12 18.12 0 0 1 1.33 7.17v1.98h-29.1a7.5 7.5 0 0 0 1.28 2.56c.6.77 1.4 1.43 2.42 1.97 1.02.55 2.27.97 3.74 1.27 1.5.3 3.27.45 5.33.45a35.35 35.35 0 0 0 8.23-.96c1.22-.3 2.31-.64 3.29-1 .99-.35 1.78-.7 2.38-1.07v6.9Zm-5.5-15.96a6.73 6.73 0 0 0-.66-2.26 5.82 5.82 0 0 0-1.72-2.13 9.46 9.46 0 0 0-3.1-1.54 15.6 15.6 0 0 0-4.77-.63c-1.79 0-3.33.23-4.64.67-1.3.44-2.4 1-3.29 1.65a8.37 8.37 0 0 0-2.04 2.13c-.48.76-.8 1.46-.94 2.1h21.16ZM271.84 31h-9.28L247.63 1.48h8.9l10.74 22.22 10.72-22.22h8.9L271.83 31ZM234.8 31V1.48h7.97V31h-7.97ZM229.73 8.16l-.94-.28c-.4-.13-.88-.25-1.42-.36a17.88 17.88 0 0 0-3.8-.45c-1.44 0-2.78.18-4.02.53-1.23.35-2.39.81-3.46 1.4a19.48 19.48 0 0 0-3 1.98c-.92.73-1.77 1.48-2.54 2.25V31h-7.97V1.48h7.97v4.8c.96-.72 1.94-1.41 2.94-2.07a25.36 25.36 0 0 1 3.16-1.78 18.9 18.9 0 0 1 3.48-1.23 15.39 15.39 0 0 1 5.44-.39 25 25 0 0 1 4.16.67v6.68ZM197.05 16.22c0 1.89-.2 3.57-.62 5.05a12.7 12.7 0 0 1-1.76 3.82 11.07 11.07 0 0 1-2.7 2.77 13.77 13.77 0 0 1-3.51 1.83c-1.29.46-2.68.8-4.17 1-1.49.21-3.04.31-4.66.31H160.9V1.48h18.69c1.62 0 3.17.1 4.66.32 1.49.2 2.88.53 4.17 1 1.3.45 2.48 1.06 3.54 1.82 1.06.74 1.96 1.67 2.7 2.77a12.7 12.7 0 0 1 1.77 3.82c.42 1.46.62 3.13.62 5Zm-8.03 0c0-1.42-.19-2.65-.56-3.7a5.64 5.64 0 0 0-1.76-2.57 7.66 7.66 0 0 0-3.16-1.53c-1.3-.34-2.9-.52-4.77-.52h-9.9v16.68h9.9c1.88 0 3.47-.17 4.77-.5a7.86 7.86 0 0 0 3.16-1.54c.81-.7 1.4-1.58 1.76-2.63.37-1.04.56-2.27.56-3.7ZM153.98 10.55c0 1.47-.25 2.78-.73 3.9a6.82 6.82 0 0 1-2.26 2.86 10.95 10.95 0 0 1-4 1.77 25.6 25.6 0 0 1-5.86.58h-13.26V31h-2.68V1.48h15.94c2.3 0 4.25.2 5.87.6 1.63.39 2.96.96 4 1.72a6.67 6.67 0 0 1 2.25 2.84c.48 1.13.73 2.43.73 3.9Zm-2.77 0c0-1.4-.24-2.54-.71-3.4a4.53 4.53 0 0 0-2.15-1.97c-.96-.48-2.19-.8-3.68-.95a50.43 50.43 0 0 0-5.26-.24h-11.54v13.15h11.54l2.51.02c.9 0 1.8-.04 2.67-.12.87-.1 1.7-.27 2.5-.5.8-.24 1.5-.6 2.1-1.1a5.05 5.05 0 0 0 1.46-1.9 7 7 0 0 0 .56-3ZM119.76 3.76c-.41-.13-1-.27-1.74-.41-.73-.16-1.67-.24-2.83-.24-1.6 0-3.12.2-4.54.6a17.94 17.94 0 0 0-7.28 3.96 23.73 23.73 0 0 0-2.8 2.83V31H97.9V1.48h2.69V7.5c.96-1 2-1.9 3.11-2.73a21.54 21.54 0 0 1 7.48-3.53 17.47 17.47 0 0 1 5.6-.47c.4.02.77.04 1.1.09a16.6 16.6 0 0 1 1.9.26v2.64ZM85.52 31v-3.27c-1.03.56-2.2 1.08-3.53 1.55a40.4 40.4 0 0 1-13.13 2.3c-1.91 0-3.64-.17-5.17-.52a12.2 12.2 0 0 1-3.87-1.52A7.38 7.38 0 0 1 57.37 27a7.06 7.06 0 0 1-.86-3.52c0-1.32.33-2.48 1-3.48a8.81 8.81 0 0 1 2.85-2.64c1.23-.76 2.71-1.4 4.45-1.91 1.74-.53 3.7-.98 5.84-1.34 2.15-.37 4.47-.67 6.96-.9 2.5-.24 5.14-.44 7.9-.6v-2.26c0-.91-.16-1.72-.5-2.42a5.54 5.54 0 0 0-1.45-1.83 7.97 7.97 0 0 0-2.17-1.31c-.83-.36-1.73-.65-2.7-.86a33.97 33.97 0 0 0-13.54.21c-1.03.25-2.02.53-2.96.86-.95.33-1.9.68-2.86 1.06V2.92c1.99-.53 4.1-.99 6.36-1.38 2.26-.4 4.66-.6 7.2-.6 2.14 0 4.15.19 6.01.56 1.86.36 3.48.94 4.86 1.74A9.16 9.16 0 0 1 87 6.36a8.55 8.55 0 0 1 1.18 4.62V31h-2.66Zm0-16c-4.69.25-8.69.62-12.01 1.09-3.31.47-6.02 1.05-8.12 1.74-2.1.69-3.66 1.49-4.64 2.4a4.18 4.18 0 0 0-1.46 3.12c0 .95.23 1.78.7 2.52a5.86 5.86 0 0 0 2.09 1.84c.9.49 2 .86 3.29 1.12 1.28.24 2.73.37 4.34.37a29.36 29.36 0 0 0 5.95-.6 36.6 36.6 0 0 0 5.71-1.57c.86-.32 1.64-.66 2.34-1.01a11.3 11.3 0 0 0 1.8-1.1v-9.93ZM28.65 1.48l10.53 27.37L50.09 1.48h2.99L41.2 31h-4L26.84 4.34 16.51 31h-4L.63 1.48h2.99l10.91 27.37 10.5-27.37h3.62Z" />
|
|
4
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 324 32">
|
|
2
|
-
<path fill="#FFC474"
|
|
3
|
-
d="M321.58 29.54a41.7 41.7 0 0 1-7.26 1.72c-2.4.36-4.87.53-7.4.53-3.21 0-6.09-.34-8.6-1.03a18.5 18.5 0 0 1-6.34-3.03 13.07 13.07 0 0 1-3.94-4.83c-.9-1.9-1.35-4.06-1.35-6.47a14.32 14.32 0 0 1 5.22-11.19 18.14 18.14 0 0 1 6.06-3.3c2.36-.81 5-1.21 7.9-1.21 2.68 0 5.13.36 7.35 1.1 2.24.71 4.15 1.78 5.74 3.2a14.28 14.28 0 0 1 3.72 5.24 18.12 18.12 0 0 1 1.33 7.17v1.98h-29.1a7.5 7.5 0 0 0 1.28 2.56c.6.77 1.4 1.43 2.42 1.97 1.02.55 2.27.97 3.74 1.27 1.5.3 3.27.45 5.33.45a35.35 35.35 0 0 0 8.23-.96c1.22-.3 2.31-.64 3.29-1 .99-.35 1.78-.7 2.38-1.07v6.9Zm-5.5-15.96a6.73 6.73 0 0 0-.66-2.26 5.82 5.82 0 0 0-1.72-2.13 9.46 9.46 0 0 0-3.1-1.54 15.6 15.6 0 0 0-4.77-.63c-1.79 0-3.33.23-4.64.67-1.3.44-2.4 1-3.29 1.65a8.37 8.37 0 0 0-2.04 2.13c-.48.76-.8 1.46-.94 2.1h21.16ZM271.84 31h-9.28L247.63 1.48h8.9l10.74 22.22 10.72-22.22h8.9L271.83 31ZM234.8 31V1.48h7.97V31h-7.97ZM229.73 8.16l-.94-.28c-.4-.13-.88-.25-1.42-.36a17.88 17.88 0 0 0-3.8-.45c-1.44 0-2.78.18-4.02.53-1.23.35-2.39.81-3.46 1.4a19.48 19.48 0 0 0-3 1.98c-.92.73-1.77 1.48-2.54 2.25V31h-7.97V1.48h7.97v4.8c.96-.72 1.94-1.41 2.94-2.07a25.36 25.36 0 0 1 3.16-1.78 18.9 18.9 0 0 1 3.48-1.23 15.39 15.39 0 0 1 5.44-.39 25 25 0 0 1 4.16.67v6.68ZM197.05 16.22c0 1.89-.2 3.57-.62 5.05a12.7 12.7 0 0 1-1.76 3.82 11.07 11.07 0 0 1-2.7 2.77 13.77 13.77 0 0 1-3.51 1.83c-1.29.46-2.68.8-4.17 1-1.49.21-3.04.31-4.66.31H160.9V1.48h18.69c1.62 0 3.17.1 4.66.32 1.49.2 2.88.53 4.17 1 1.3.45 2.48 1.06 3.54 1.82 1.06.74 1.96 1.67 2.7 2.77a12.7 12.7 0 0 1 1.77 3.82c.42 1.46.62 3.13.62 5Zm-8.03 0c0-1.42-.19-2.65-.56-3.7a5.64 5.64 0 0 0-1.76-2.57 7.66 7.66 0 0 0-3.16-1.53c-1.3-.34-2.9-.52-4.77-.52h-9.9v16.68h9.9c1.88 0 3.47-.17 4.77-.5a7.86 7.86 0 0 0 3.16-1.54c.81-.7 1.4-1.58 1.76-2.63.37-1.04.56-2.27.56-3.7ZM153.98 10.55c0 1.47-.25 2.78-.73 3.9a6.82 6.82 0 0 1-2.26 2.86 10.95 10.95 0 0 1-4 1.77 25.6 25.6 0 0 1-5.86.58h-13.26V31h-2.68V1.48h15.94c2.3 0 4.25.2 5.87.6 1.63.39 2.96.96 4 1.72a6.67 6.67 0 0 1 2.25 2.84c.48 1.13.73 2.43.73 3.9Zm-2.77 0c0-1.4-.24-2.54-.71-3.4a4.53 4.53 0 0 0-2.15-1.97c-.96-.48-2.19-.8-3.68-.95a50.43 50.43 0 0 0-5.26-.24h-11.54v13.15h11.54l2.51.02c.9 0 1.8-.04 2.67-.12.87-.1 1.7-.27 2.5-.5.8-.24 1.5-.6 2.1-1.1a5.05 5.05 0 0 0 1.46-1.9 7 7 0 0 0 .56-3ZM119.76 3.76c-.41-.13-1-.27-1.74-.41-.73-.16-1.67-.24-2.83-.24-1.6 0-3.12.2-4.54.6a17.94 17.94 0 0 0-7.28 3.96 23.73 23.73 0 0 0-2.8 2.83V31H97.9V1.48h2.69V7.5c.96-1 2-1.9 3.11-2.73a21.54 21.54 0 0 1 7.48-3.53 17.47 17.47 0 0 1 5.6-.47c.4.02.77.04 1.1.09a16.6 16.6 0 0 1 1.9.26v2.64ZM85.52 31v-3.27c-1.03.56-2.2 1.08-3.53 1.55a40.4 40.4 0 0 1-13.13 2.3c-1.91 0-3.64-.17-5.17-.52a12.2 12.2 0 0 1-3.87-1.52A7.38 7.38 0 0 1 57.37 27a7.06 7.06 0 0 1-.86-3.52c0-1.32.33-2.48 1-3.48a8.81 8.81 0 0 1 2.85-2.64c1.23-.76 2.71-1.4 4.45-1.91 1.74-.53 3.7-.98 5.84-1.34 2.15-.37 4.47-.67 6.96-.9 2.5-.24 5.14-.44 7.9-.6v-2.26c0-.91-.16-1.72-.5-2.42a5.54 5.54 0 0 0-1.45-1.83 7.97 7.97 0 0 0-2.17-1.31c-.83-.36-1.73-.65-2.7-.86a33.97 33.97 0 0 0-13.54.21c-1.03.25-2.02.53-2.96.86-.95.33-1.9.68-2.86 1.06V2.92c1.99-.53 4.1-.99 6.36-1.38 2.26-.4 4.66-.6 7.2-.6 2.14 0 4.15.19 6.01.56 1.86.36 3.48.94 4.86 1.74A9.16 9.16 0 0 1 87 6.36a8.55 8.55 0 0 1 1.18 4.62V31h-2.66Zm0-16c-4.69.25-8.69.62-12.01 1.09-3.31.47-6.02 1.05-8.12 1.74-2.1.69-3.66 1.49-4.64 2.4a4.18 4.18 0 0 0-1.46 3.12c0 .95.23 1.78.7 2.52a5.86 5.86 0 0 0 2.09 1.84c.9.49 2 .86 3.29 1.12 1.28.24 2.73.37 4.34.37a29.36 29.36 0 0 0 5.95-.6 36.6 36.6 0 0 0 5.71-1.57c.86-.32 1.64-.66 2.34-1.01a11.3 11.3 0 0 0 1.8-1.1v-9.93ZM28.65 1.48l10.53 27.37L50.09 1.48h2.99L41.2 31h-4L26.84 4.34 16.51 31h-4L.63 1.48h2.99l10.91 27.37 10.5-27.37h3.62Z" />
|
|
4
|
-
</svg>
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/tracking/-private' {
|
|
2
|
-
import { tagForProperty } from '@ember/-internals/metal';
|
|
3
|
-
import { dependentKeyCompat as compat } from '@ember/object/compat';
|
|
4
|
-
/**
|
|
5
|
-
* This package provides primitives that allow powerful low-level
|
|
6
|
-
* adjustments to change tracking notification behaviors.
|
|
7
|
-
*
|
|
8
|
-
* Typically you want to use these primitives when you want to divorce
|
|
9
|
-
* property accesses on EmberData provided objects from the current
|
|
10
|
-
* tracking context. Typically this sort of thing occurs when serializing
|
|
11
|
-
* tracked data to send in a request: the data itself is often ancillary
|
|
12
|
-
* to the thing which triggered the request in the first place and you
|
|
13
|
-
* would not want to re-trigger the request for any update to the data.
|
|
14
|
-
*
|
|
15
|
-
* @module @ember-data/tracking
|
|
16
|
-
* @main @ember-data/tracking
|
|
17
|
-
*/
|
|
18
|
-
type OpaqueFn = (...args: unknown[]) => unknown;
|
|
19
|
-
type Tag = {
|
|
20
|
-
ref: null;
|
|
21
|
-
t: boolean;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* If there is a current transaction, ensures that the relevant tag (and any
|
|
25
|
-
* array computed chains symbols, if applicable) will be consumed during the
|
|
26
|
-
* transaction.
|
|
27
|
-
*
|
|
28
|
-
* If there is no current transaction, will consume the tag(s) immediately.
|
|
29
|
-
*
|
|
30
|
-
* @internal
|
|
31
|
-
* @param obj
|
|
32
|
-
*/
|
|
33
|
-
export function subscribe(obj: Tag | Signal): void;
|
|
34
|
-
export function addToTransaction(obj: Tag | Signal): void;
|
|
35
|
-
export function addTransactionCB(method: OpaqueFn): void;
|
|
36
|
-
/**
|
|
37
|
-
* Run `method` without subscribing to any tracked properties
|
|
38
|
-
* controlled by EmberData.
|
|
39
|
-
*
|
|
40
|
-
* This should rarely be used except by libraries that really
|
|
41
|
-
* know what they are doing. It is most useful for wrapping
|
|
42
|
-
* certain kinds of fetch/query logic from within a `Resource`
|
|
43
|
-
* `hook` or other similar pattern.
|
|
44
|
-
*
|
|
45
|
-
* @function untracked
|
|
46
|
-
* @public
|
|
47
|
-
* @static
|
|
48
|
-
* @for @ember-data/tracking
|
|
49
|
-
* @param method
|
|
50
|
-
* @return result of invoking method
|
|
51
|
-
*/
|
|
52
|
-
export function untracked<T extends OpaqueFn>(method: T): ReturnType<T>;
|
|
53
|
-
/**
|
|
54
|
-
* Run the method, subscribing to any tracked properties
|
|
55
|
-
* managed by EmberData that were accessed or written during
|
|
56
|
-
* the method's execution as per-normal but while allowing
|
|
57
|
-
* interleaving of reads and writes.
|
|
58
|
-
*
|
|
59
|
-
* This is useful when for instance you want to perform
|
|
60
|
-
* a mutation based on existing state that must be read first.
|
|
61
|
-
*
|
|
62
|
-
* @function transact
|
|
63
|
-
* @public
|
|
64
|
-
* @static
|
|
65
|
-
* @for @ember-data/tracking
|
|
66
|
-
* @param method
|
|
67
|
-
* @return result of invoking method
|
|
68
|
-
*/
|
|
69
|
-
export function transact<T extends OpaqueFn>(method: T): ReturnType<T>;
|
|
70
|
-
/**
|
|
71
|
-
* A helpful utility for creating a new function that
|
|
72
|
-
* always runs in a transaction. E.G. this "memoizes"
|
|
73
|
-
* calling `transact(fn)`, currying args as necessary.
|
|
74
|
-
*
|
|
75
|
-
* @method memoTransact
|
|
76
|
-
* @public
|
|
77
|
-
* @static
|
|
78
|
-
* @for @ember-data/tracking
|
|
79
|
-
* @param method
|
|
80
|
-
* @return a function that will invoke method in a transaction with any provided args and return its result
|
|
81
|
-
*/
|
|
82
|
-
export function memoTransact<T extends OpaqueFn>(method: T): (...args: unknown[]) => ReturnType<T>;
|
|
83
|
-
export const Signals: "___(unique) Symbol(Signals)";
|
|
84
|
-
/**
|
|
85
|
-
* use to add a signal property to the prototype of something.
|
|
86
|
-
*
|
|
87
|
-
* First arg is the thing to define on
|
|
88
|
-
* Second arg is the property name
|
|
89
|
-
* Third agg is the initial value of the property if any.
|
|
90
|
-
*
|
|
91
|
-
* for instance
|
|
92
|
-
*
|
|
93
|
-
* ```ts
|
|
94
|
-
* class Model {}
|
|
95
|
-
* defineSignal(Model.prototype, 'isLoading', false);
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* This is sort of like using a stage-3 decorator but works today
|
|
99
|
-
* while we are still on legacy decorators.
|
|
100
|
-
*
|
|
101
|
-
* e.g. it is equivalent to
|
|
102
|
-
*
|
|
103
|
-
* ```ts
|
|
104
|
-
* class Model {
|
|
105
|
-
* @signal accessor isLoading = false;
|
|
106
|
-
* }
|
|
107
|
-
* ```
|
|
108
|
-
*
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
export function defineSignal<T extends object>(obj: T, key: string, v?: unknown): void;
|
|
112
|
-
export function defineSubscription<T extends object>(obj: T, key: string, desc: PropertyDescriptor): void;
|
|
113
|
-
export interface Signal {
|
|
114
|
-
/**
|
|
115
|
-
* Key on the associated object
|
|
116
|
-
* @internal
|
|
117
|
-
*/
|
|
118
|
-
key: string;
|
|
119
|
-
_debug_base?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Whether this signal is part of an active transaction.
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
t: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Whether to "bust" the lastValue cache
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
|
-
shouldReset: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* The reason this signal is dirty
|
|
132
|
-
*
|
|
133
|
-
* @internal
|
|
134
|
-
*/
|
|
135
|
-
reason: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* The framework specific "signal" e.g. glimmer "tracked"
|
|
138
|
-
* or starbeam "cell" to consume/invalidate when appropriate.
|
|
139
|
-
*
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
142
|
-
tag: ReturnType<typeof tagForProperty>;
|
|
143
|
-
/**
|
|
144
|
-
* In classic ember, arrays must entangle a `[]` symbol
|
|
145
|
-
* in addition to any other tag in order for array chains to work.
|
|
146
|
-
*
|
|
147
|
-
* Note, this symbol MUST be the one that ember itself generates
|
|
148
|
-
*
|
|
149
|
-
* @internal
|
|
150
|
-
*/
|
|
151
|
-
'[]': ReturnType<typeof tagForProperty> | null;
|
|
152
|
-
/**
|
|
153
|
-
* In classic ember, arrays must entangle a `@length` symbol
|
|
154
|
-
* in addition to any other tag in order for array chains to work.
|
|
155
|
-
*
|
|
156
|
-
* Note, this symbol MUST be the one that ember itself generates
|
|
157
|
-
*
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
160
|
-
'@length': ReturnType<typeof tagForProperty> | null;
|
|
161
|
-
/**
|
|
162
|
-
* The lastValue computed for this signal when
|
|
163
|
-
* a signal is also used for storage.
|
|
164
|
-
* @internal
|
|
165
|
-
*/
|
|
166
|
-
lastValue: unknown;
|
|
167
|
-
}
|
|
168
|
-
export function createArrayTags<T extends object>(obj: T, signal: Signal): void;
|
|
169
|
-
/**
|
|
170
|
-
* Create a signal for the key/object pairing.
|
|
171
|
-
*
|
|
172
|
-
* @internal
|
|
173
|
-
* @param obj Object we're creating the signal on
|
|
174
|
-
* @param key Key to create the signal for
|
|
175
|
-
* @return the signal
|
|
176
|
-
*/
|
|
177
|
-
export function createSignal<T extends object>(obj: T, key: string): Signal;
|
|
178
|
-
/**
|
|
179
|
-
* Create a signal for the key/object pairing and subscribes to the signal.
|
|
180
|
-
*
|
|
181
|
-
* Use when you need to ensure a signal exists and is subscribed to.
|
|
182
|
-
*
|
|
183
|
-
* @internal
|
|
184
|
-
* @param signals Map of signals
|
|
185
|
-
* @param obj Object we're creating the signal on
|
|
186
|
-
* @param key Key to create the signal for
|
|
187
|
-
* @return the signal
|
|
188
|
-
*/
|
|
189
|
-
export function entangleSignal<T extends object>(signals: Map<string, Signal>, obj: T, key: string): Signal;
|
|
190
|
-
export function getSignal<T extends object>(obj: T, key: string, initialState: boolean): Signal;
|
|
191
|
-
export function peekSignal<T extends object>(obj: T, key: string): Signal | undefined;
|
|
192
|
-
export function subscribed<T extends object, K extends keyof T & string>(_target: T, key: K, desc: PropertyDescriptor): PropertyDescriptor;
|
|
193
|
-
export { compat };
|
|
194
|
-
export function notifySignal<T extends object, K extends keyof T & string>(obj: T, key: K): void;
|
|
195
|
-
}
|
|
196
|
-
//# sourceMappingURL=-private.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAOpE;;;;;;;;;;;;;GAaG;AACH,KAAK,QA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