Skip to content

Commit 6d6046c

Browse files
committed
refactor: 调整历史记录标记函数
1 parent 6586fc5 commit 6d6046c

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-flow-interface",
3-
"version": "0.23.10",
3+
"version": "0.23.11",
44
"description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
55
"type": "module",
66
"module": "dist/index.js",

src/hook/use-base.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export type UseBase = <T = unknown>(
55
) => {
66
state: T
77
set: (key: string | RvPath, value: unknown) => void
8-
check: (key: string | RvPath) => void
8+
mark: (key: string | RvPath) => void
99
}

src/hook/use-t-node.type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export type UseTNode = <T = unknown>(
88
state: T | null
99
set: (key: string | RvPath, value: unknown) => void
1010
multiSet: (key: string | RvPath, value: unknown) => void
11-
check: (key: string | RvPath) => void
12-
multiCheck: (key: string | RvPath) => void
11+
mark: (key: string | RvPath) => void
12+
multiMark: (key: string | RvPath) => void
1313
}

src/hook/use-t-step.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export type UseTStep = <T = unknown>(
66
sid: string
77
state: T
88
set: (key: string | RvPath, value: unknown) => void
9-
check: (key: string | RvPath) => void
9+
mark: (key: string | RvPath) => void
1010
}

src/service/sync/history/history-service-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default interface HistoryServiceApi {
1414

1515
pushState(state: unknown): void
1616

17-
check(operate: string, forceStop?: boolean): void
17+
mark(operate: string, forceStop?: boolean): void
1818

1919
stop(): void
2020

src/service/target/t-node-service-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export default interface TNodeServiceApi {
1616

1717
multiSet<T>(path: string | RvPath, value: T): void
1818

19-
check<T>(path: string | RvPath): void
19+
mark<T>(path: string | RvPath): void
2020

21-
multiCheck<T>(path: string | RvPath): void
21+
multiMark<T>(path: string | RvPath): void
2222

2323
subscribe(subscriber: TNodeSubscriber): () => void
2424

0 commit comments

Comments
 (0)