Skip to content

Commit

Permalink
Merge pull request #111 from heluxjs/doc
Browse files Browse the repository at this point in the history
chore: format
  • Loading branch information
fantasticsoul authored Jan 6, 2024
2 parents efbe174 + 7577db7 commit 1bfdfe3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: npm install -g [email protected]
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build helux libs
- name: Build helux libs
run: pnpm run build
- name: Build with dumi
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
Expand Down
2 changes: 1 addition & 1 deletion packages-legacy/helux-preact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ export const {
addMiddleware,
addPlugin,
cst,
} = api;
} = api;
2 changes: 1 addition & 1 deletion packages/helux-core/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { limuUtils, produce, markRaw } from 'limu';
import { limuUtils, markRaw, produce } from 'limu';
import { EVENT_NAME, LIMU_VER, RECORD_LOADING, VER } from './consts/user';
import { getAtom, isAtom, isDerivedAtom } from './factory/common/atom';
import { addMiddleware } from './factory/common/middleware';
Expand Down
22 changes: 11 additions & 11 deletions packages/helux-core/src/types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ export function useAtom<T = any>(
sharedState: T,
options?: IUseSharedStateOptions<T>,
): [
T extends ReadOnlyAtom ? AtomValType<T> : T,
// AtomTupleSetState<T>,
SetState<T>,
IInsRenderInfo<T>,
];
T extends ReadOnlyAtom ? AtomValType<T> : T,
// AtomTupleSetState<T>,
SetState<T>,
IInsRenderInfo<T>,
];

/**
* 区别于 useAtom,useAtomX 返回对象
Expand All @@ -260,12 +260,12 @@ export function useReactive<T = any>(
sharedState: T,
options?: IUseSharedStateOptions<T>,
): [
// 针对 atom,第一位 reactive 参数自动拆箱
T extends Atom ? T['val'] : T,
// 代表 reactiveRoot
T,
IInsRenderInfo,
];
// 针对 atom,第一位 reactive 参数自动拆箱
T extends Atom ? T['val'] : T,
// 代表 reactiveRoot
T,
IInsRenderInfo,
];

export function useReactiveX<T = any>(sharedState: T, options?: IUseSharedStateOptions<T>): ICompReactiveCtx<T>;

Expand Down

0 comments on commit 1bfdfe3

Please sign in to comment.