Files
NapCatQQ/.pnpm-store/v3/files/6a/4f55c351817b040c41df0e7bcb054a28701869fcae2c797b2741cc94149ed6e57a39a142e19b6c312b9e72fb7b65429e64c44ba49999c91145cb841c6445d7
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

11 lines
300 B
Plaintext

import { Action } from '../types/actions'
import isPlainObject from './isPlainObject'
export default function isAction(action: unknown): action is Action<string> {
return (
isPlainObject(action) &&
'type' in action &&
typeof (action as Record<'type', unknown>).type === 'string'
)
}