Skip to content

Commit

Permalink
🎨 Atomの同期構造を改善 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Jun 1, 2022
1 parent e902c64 commit 3ba0c47
Show file tree
Hide file tree
Showing 25 changed files with 1,001 additions and 321 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"tailwindcss-textshadow": "^2.1.3",
"ts-node": "^10.7.0",
"type-fest": "^2.12.2",
"typescript": "^4.6.3",
"typescript": "^4.7.2",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.8.1"
Expand All @@ -101,7 +101,8 @@
"react-resize-detector": "^7.0.0",
"react-spring-carousel-js": "^1.9.32",
"react-use": "^17.3.2",
"recoil": "^0.7.2",
"recoil": "^0.7.3-alpha.2",
"recoil-sync": "^0.0.1-alpha.2",
"stream-json": "^1.7.4",
"webchimera.js": "patch:webchimera.js@^0.5.2#patches/webchimera.js+0.5.2.patch",
"zod": "^3.14.4"
Expand Down
8 changes: 7 additions & 1 deletion src/@types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import _Recoil from "recoil"
import _RecoilSync from "recoil-sync"
import { Preload } from "../types/ipc"
import { InternalPluginDefineInRenderer, DefineAtom } from "../types/plugin"
import { PluginDatum } from "../types/struct"
Expand All @@ -15,6 +16,11 @@ declare global {

// eslint-disable-next-line no-var
declare var Recoil: typeof _Recoil
// eslint-disable-next-line no-var
declare var RecoilSync: typeof _RecoilSync

declare const structuredClone: <T>(obj: T) => T
declare function structuredClone<T>(
obj: T,
options?: StructuredSerializeOptions
): T
}
Loading

0 comments on commit 3ba0c47

Please sign in to comment.