继续收紧 TypeScript:ClaimIdentity 契约与 flow 出口类型
- 新增 types/claim-identity,统一 ClaimIdentity / Payload / AdminSummary - 导出 KuaishouCloudFlow、KuaishouFeifeiFlow 作为 normalize 出口 - 生产路径 JsonObject 统一从 types/json 导入,去掉 rebind as any - 前后端 claimIdentity 类型字段对齐
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { JsonObject } from '../../types/json.js'
|
||||
import { createHttpError } from '../../utils/http.js'
|
||||
|
||||
const DEFAULT_TIMEOUT_MS = 10000
|
||||
|
||||
type JsonObject = Record<string, unknown>
|
||||
type BarkSendInput = {
|
||||
serverUrl?: string
|
||||
recipient?: {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { JsonObject } from '../../types/json.js'
|
||||
import { logWarn } from '../../utils/logger.js'
|
||||
import { sendInternalNotification } from './notification-service.js'
|
||||
|
||||
const DEFAULT_COOLDOWN_MS = 10 * 60 * 1000
|
||||
const notificationCooldownMap = new Map<string, number>()
|
||||
|
||||
type JsonObject = Record<string, unknown>
|
||||
type InternalNotificationPayload = {
|
||||
title: string
|
||||
body?: string
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import http from 'node:http'
|
||||
import https from 'node:https'
|
||||
|
||||
import type { JsonObject } from '../../types/json.js'
|
||||
import { createHttpError } from '../../utils/http.js'
|
||||
|
||||
const DEFAULT_WPUSH_ENDPOINT = 'https://api.wpush.cn/api/v1/send'
|
||||
const DEFAULT_TIMEOUT_MS = 10000
|
||||
|
||||
type JsonObject = Record<string, unknown>
|
||||
type NodeHttpResponse = {
|
||||
ok: boolean
|
||||
status: number
|
||||
|
||||
Reference in New Issue
Block a user