Commit 8876669c authored by timel's avatar timel

revert: changes in env.d.ts

parent 2ef8fbcc
...@@ -11,9 +11,9 @@ interface ImportMeta { ...@@ -11,9 +11,9 @@ interface ImportMeta {
readonly env: ImportMetaEnv; readonly env: ImportMetaEnv;
} }
// 重新声明useSnapshot,暂时先这么写。原版的会把所有的改成readonly,引发一些棘手的类型报错。 // // 重新声明useSnapshot,暂时先这么写。原版的会把所有的改成readonly,引发一些棘手的类型报错。
import "valtio/react"; // import "valtio/react";
declare module "valtio/react" { // declare module "valtio/react" {
export declare function useSnapshot<T extends object>(proxyObject: T): T; // export declare function useSnapshot<T extends object>(proxyObject: T): T;
export {}; // export {};
} // }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment