@mongez/atom 1.0.2 → 1.0.3
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/cjs/atom-collection.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Atom, AtomActions, AtomOptions } from './types';
|
|
2
2
|
export type IndexOrCallback<Value> = number | ((value: Value, index: number, list: Value[]) => boolean);
|
|
3
|
-
interface AtomCollectionActions<Value> extends AtomActions<Value[]> {
|
|
3
|
+
export interface AtomCollectionActions<Value> extends AtomActions<Value[]> {
|
|
4
4
|
/**
|
|
5
5
|
* Add items to the end of the array
|
|
6
6
|
*/
|
|
@@ -62,5 +62,4 @@ export type CollectionOptions<Value> = Omit<AtomOptions<Value[], AtomCollectionA
|
|
|
62
62
|
* Create an atom collection
|
|
63
63
|
*/
|
|
64
64
|
export declare function atomCollection<Value = any>(options: CollectionOptions<Value>): Atom<Value[], AtomCollectionActions<Value>>;
|
|
65
|
-
export {};
|
|
66
65
|
//# sourceMappingURL=atom-collection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atom-collection.d.ts","sourceRoot":"","sources":["../src/atom-collection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,MAAM,eAAe,CAAC,KAAK,IAC7B,MAAM,GACN,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,CAAC;AAE9D,
|
|
1
|
+
{"version":3,"file":"atom-collection.d.ts","sourceRoot":"","sources":["../src/atom-collection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,MAAM,eAAe,CAAC,KAAK,IAC7B,MAAM,GACN,C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,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,OAAO,GAChE,MAAM,CAAC;IACV;;;OAGG;IACH,GAAG,CACD,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,KAAK,GAC9D,KAAK,EAAE,CAAC;IACX;;OAEG;IACH,OAAO,CACL,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,GAC7D,IAAI,CAAC;IACR;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAC/D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,iBAAiB,CAAC,KAAK,IAAI,IAAI,CACzC,WAAW,CAAC,KAAK,EAAE,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC,EAClD,SAAS,CACV,GAAG;IACF,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,GAAG,GAAG,EACxC,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAChC,IAAI,CAAC,KAAK,EAAE,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC,CA8E7C"}
|
package/esm/atom-collection.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Atom, AtomActions, AtomOptions } from './types';
|
|
2
2
|
export type IndexOrCallback<Value> = number | ((value: Value, index: number, list: Value[]) => boolean);
|
|
3
|
-
interface AtomCollectionActions<Value> extends AtomActions<Value[]> {
|
|
3
|
+
export interface AtomCollectionActions<Value> extends AtomActions<Value[]> {
|
|
4
4
|
/**
|
|
5
5
|
* Add items to the end of the array
|
|
6
6
|
*/
|
|
@@ -62,5 +62,4 @@ export type CollectionOptions<Value> = Omit<AtomOptions<Value[], AtomCollectionA
|
|
|
62
62
|
* Create an atom collection
|
|
63
63
|
*/
|
|
64
64
|
export declare function atomCollection<Value = any>(options: CollectionOptions<Value>): Atom<Value[], AtomCollectionActions<Value>>;
|
|
65
|
-
export {};
|
|
66
65
|
//# sourceMappingURL=atom-collection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atom-collection.d.ts","sourceRoot":"","sources":["../src/atom-collection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,MAAM,eAAe,CAAC,KAAK,IAC7B,MAAM,GACN,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,CAAC;AAE9D,
|
|
1
|
+
{"version":3,"file":"atom-collection.d.ts","sourceRoot":"","sources":["../src/atom-collection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,MAAM,eAAe,CAAC,KAAK,IAC7B,MAAM,GACN,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC,CAAC;AAE9D,MAAM,WAAW,qBAAqB,CAAC,KAAK,CAAE,SAAQ,WAAW,CAAC,KAAK,EAAE,CAAC;IACxE;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,GAA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