r-state-tree 0.4.4 → 0.4.5
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/store/Store.d.ts +1 -1
- package/package.json +57 -58
package/dist/store/Store.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type CreateStoreProps<T extends Props> = {
|
|
|
4
4
|
[K in keyof T as undefined extends T[K] ? K : never]?: T[K] extends infer U ? U extends undefined ? never : undefined extends U ? U | undefined : U : never;
|
|
5
5
|
} & {
|
|
6
6
|
[K in keyof T as undefined extends T[K] ? never : K]?: T[K];
|
|
7
|
-
} & Pick<Props,
|
|
7
|
+
} & Pick<Props, "key" | "models"> & Partial<Record<string, unknown>>;
|
|
8
8
|
export declare function createStore<K extends Store<T>, T extends Props>(Type: new (props: T) => K, props?: CreateStoreProps<T>): K;
|
|
9
9
|
export declare function updateStore<K extends Store<T>, T extends Props>(store: K, props: CreateStoreProps<T>): K;
|
|
10
10
|
export declare function types<T extends Store>(config: Partial<StoreConfiguration<T>>): Partial<StoreConfiguration<T>>;
|
package/package.json
CHANGED
|
@@ -1,59 +1,58 @@
|
|
|
1
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
|
-
}
|
|
2
|
+
"name": "r-state-tree",
|
|
3
|
+
"version": "0.4.5",
|
|
4
|
+
"description": "reactive state management library",
|
|
5
|
+
"main": "dist/r-state-tree.cjs",
|
|
6
|
+
"module": "dist/r-state-tree.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/r-state-tree.js",
|
|
12
|
+
"require": "./dist/r-state-tree.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/*",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/melnikov-s/r-state-tree.git"
|
|
23
|
+
},
|
|
24
|
+
"author": "Sergey Melnikov",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/melnikov-s/r-state-tree/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/melnikov-s/r-state-tree#readme",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@tsmetadata/polyfill": "^1.1.3",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
|
33
|
+
"@typescript-eslint/parser": "^5.8.1",
|
|
34
|
+
"eslint": "^8.5.0",
|
|
35
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
36
|
+
"eslint-config-prettier": "^8.3.0",
|
|
37
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
38
|
+
"eslint-plugin-import": "^2.25.3",
|
|
39
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
40
|
+
"prettier": "^2.8.4",
|
|
41
|
+
"tslib": "^2.5.0",
|
|
42
|
+
"typescript": "5.9.3",
|
|
43
|
+
"vite": "7.1.9",
|
|
44
|
+
"vitest": "3.2.4"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@preact/signals-core": "^1.12.1"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"test:cover": "vitest run --coverage",
|
|
53
|
+
"build": "vite build && pnpm run build:types",
|
|
54
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
55
|
+
"lint": "eslint ./src ./tests --ext .ts",
|
|
56
|
+
"format": "prettier --cache --write \"src/**/*.ts\" \"tests/**/*.ts\""
|
|
57
|
+
}
|
|
58
|
+
}
|