Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
修复当在ts里使用 `export createStore()`时的报错 "default export of the module has or is using private name 'Store'."
  • Loading branch information
mater1996 committed Jun 18, 2024
1 parent 66af39e commit d84de66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/@types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type DepsSymbol = typeof DEPS_SYMBOL
type StateSymbol = typeof STATE_SYMBOL
type GettersSymbol = typeof GETTERS_SYMBOL

interface Store<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> {
export interface Store<S = {}, G = {}, M = {}, A = {}, D extends Deps = {}> {

[DEPS_SYMBOL]: D
[STATE_SYMBOL]: S
Expand Down

0 comments on commit d84de66

Please sign in to comment.