Skip to content

Commit

Permalink
其他
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-hxl committed Nov 29, 2022
1 parent c399b42 commit ea111b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion publish/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,15 @@ export type IProxyInstanceRes<
A extends IActions<IProxyInstanceRes<S, A>>
> = S & A & IStoreApi<S>

export type IXlStore = <
S extends IState,
A extends IActions<IProxyInstanceRes<S, A>>
>(
store: IStoreArgs<S, A>,
options?: IStoreOptionsArg
) => IProxyInstanceRes<S, A>

export default function xlStore<S extends IState, A extends IActions<IProxyInstanceRes<S, A>>>(
export default function xlStore<S extends IState, A extends IActions<IProxyInstanceRes<S, A>>>(
store: IStoreArgs<S, A>,
options?: IStoreOptionsArg
): IProxyInstanceRes<S, A>
6 changes: 3 additions & 3 deletions publish/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "xl-store",
"version": "0.1.11",
"description": "状态管理仓库",
"author": "coderhxl",
"description": "状态管理库",
"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"miniprogram": "lib",
"author": "coderhxl",
"license": "MIT",
"homepage": "https://github.com/coder-hxl/xl-store/tree/master/publish",
"repository": {
"type": "git",
Expand Down

0 comments on commit ea111b4

Please sign in to comment.