diff --git a/package.json b/package.json index 6f3c4a1..44d2ce1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-social-vm-types", - "version": "1.0.0", + "version": "1.1.0", "description": "This repository includes types for Near social VM", "main": "src/index.d.ts", "repository": { diff --git a/src/index.d.ts b/src/index.d.ts index 1dff887..01b9a27 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -207,3 +207,21 @@ declare namespace StorageAPI { privateSet(key: string, value: string): Promise; } } + +declare function useState(): [ + S | undefined, + (value: S | undefined | ((prevState: S | undefined) => S | undefined)) => void +]; +declare function useState( + initialState: S | (() => S) +): [S, (value: S | ((prevState: S) => S)) => void]; + +declare function useEffect( + effect: () => void | (() => void), + deps?: ReadonlyArray +): void; + +declare function useMemo( + factory: () => T, + deps: ReadonlyArray | undefined +): T; \ No newline at end of file