更新注释,明确已初始化的query和worker实例不需要编辑配置

This commit is contained in:
2025-12-31 15:34:39 +08:00
parent 99645e6260
commit 9532cfbe2e

View File

@@ -14,7 +14,7 @@ export type RouterViewApi = {
type: 'api',
api: {
url: string,
// 已初始化的query实例
// 已初始化的query实例,不需要编辑配置
query?: Query
}
} & RouteViewBase;
@@ -23,7 +23,7 @@ export type RouterViewContext = {
type: 'context',
context: {
key: string,
// 从context中获取router
// 从context中获取router,不需要编辑配置
router?: QueryRouterServer
}
} & RouteViewBase;
@@ -32,7 +32,7 @@ export type RouterViewWorker = {
worker: {
type: 'Worker' | 'SharedWorker' | 'serviceWorker',
url: string,
// 已初始化的worker实例
// 已初始化的worker实例,不需要编辑配置
worker?: Worker | SharedWorker | ServiceWorker,
/**
* worker选项