plug-code 1.1.7 → 1.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plug-code",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "main": "src/plug-code.tsx",
6
6
  "types": "types/plug-code.d.ts",
@@ -76,6 +76,8 @@ export declare class PlcAPI<S extends ObjectType> {
76
76
  createData<K extends string, T>(key: K, initialState: T): void;
77
77
 
78
78
  getData(key: string): any;
79
+
80
+ derive<K extends string>(outputKey: K, dependencies: string[], calculator: () => any): void
79
81
 
80
82
  update<K extends keyof S>(key: string & "root", updater: (draft: any) => void, slot?: string): void;
81
83