继续收紧 TypeScript:ClaimIdentity 契约与 flow 出口类型
- 新增 types/claim-identity,统一 ClaimIdentity / Payload / AdminSummary - 导出 KuaishouCloudFlow、KuaishouFeifeiFlow 作为 normalize 出口 - 生产路径 JsonObject 统一从 types/json 导入,去掉 rebind as any - 前后端 claimIdentity 类型字段对齐
This commit is contained in:
@@ -6,9 +6,9 @@ import { getCloudtentaclesBindInfo } from '../../platforms/cloudtentacles/virtua
|
||||
import {
|
||||
hasKuaishouCloudDefaultRoleSnapshot,
|
||||
isSameKuaishouCloudRoleIdentity,
|
||||
normalizeKuaishouCloudFlow,
|
||||
normalizeKuaishouCloudRoleInfo,
|
||||
type JsonObject,
|
||||
type KuaishouCloudFlow,
|
||||
} from './domain.js'
|
||||
|
||||
export type KuaishouCloudDefaultRoleSnapshot = {
|
||||
@@ -79,7 +79,7 @@ export function buildRoleStateFromCurrentInfo({
|
||||
now,
|
||||
emptyMessage,
|
||||
}: {
|
||||
flow: ReturnType<typeof normalizeKuaishouCloudFlow>
|
||||
flow: KuaishouCloudFlow
|
||||
roleInfo: { name: string; rid: string; rawInfo?: unknown }
|
||||
now: string
|
||||
emptyMessage: string
|
||||
|
||||
Reference in New Issue
Block a user