Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
8876669c
Commit
8876669c
authored
Apr 26, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert: changes in env.d.ts
parent
2ef8fbcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/env.d.ts
src/env.d.ts
+6
-6
No files found.
src/env.d.ts
View file @
8876669c
...
@@ -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 {};
}
//
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment