From 7577db7bd77aec64e755b403aa7b33d31320e163 Mon Sep 17 00:00:00 2001 From: fantasticsoul Date: Sat, 6 Jan 2024 12:46:01 +0800 Subject: [PATCH] chore: format --- .github/workflows/website.yml | 2 +- packages-legacy/helux-preact/src/index.ts | 2 +- packages/helux-core/src/api.ts | 2 +- packages/helux-core/src/types/api.d.ts | 22 +++++++++++----------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index e7218e26..069e3c4b 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -20,7 +20,7 @@ jobs: run: npm install -g pnpm@7.9.5 - 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 diff --git a/packages-legacy/helux-preact/src/index.ts b/packages-legacy/helux-preact/src/index.ts index d1447086..15c10429 100644 --- a/packages-legacy/helux-preact/src/index.ts +++ b/packages-legacy/helux-preact/src/index.ts @@ -79,4 +79,4 @@ export const { addMiddleware, addPlugin, cst, -} = api; \ No newline at end of file +} = api; diff --git a/packages/helux-core/src/api.ts b/packages/helux-core/src/api.ts index 5d2e3b02..833d291a 100644 --- a/packages/helux-core/src/api.ts +++ b/packages/helux-core/src/api.ts @@ -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'; diff --git a/packages/helux-core/src/types/api.d.ts b/packages/helux-core/src/types/api.d.ts index aa2965ce..5476e890 100644 --- a/packages/helux-core/src/types/api.d.ts +++ b/packages/helux-core/src/types/api.d.ts @@ -242,11 +242,11 @@ export function useAtom( sharedState: T, options?: IUseSharedStateOptions, ): [ - T extends ReadOnlyAtom ? AtomValType : T, - // AtomTupleSetState, - SetState, - IInsRenderInfo, - ]; + T extends ReadOnlyAtom ? AtomValType : T, + // AtomTupleSetState, + SetState, + IInsRenderInfo, +]; /** * 区别于 useAtom,useAtomX 返回对象 @@ -260,12 +260,12 @@ export function useReactive( sharedState: T, options?: IUseSharedStateOptions, ): [ - // 针对 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(sharedState: T, options?: IUseSharedStateOptions): ICompReactiveCtx;