Files
NapCatQQ/.pnpm-store/v3/files/14/f5e694e89e9b5b789f7b5017d4eca1d2ada7f2188fc6d825ea71a5910826c3bc45e2e59da805ae7bf59a9b0d13681f999b4db5fac23579ead1a7b2034a2825
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
662 B
Plaintext

import { IMessageType, MESSAGE_TYPE } from './message-type-contract';
/**
* The interface that models storing type in a symbol property.
*
* Note that this is an experimental feature - it is here to stay, but
* implementation details may change without notice.
*/
export interface MessageTypeContainer<T extends object> {
[MESSAGE_TYPE]: IMessageType<T>;
}
/**
* Check if the provided object is a proto message.
*
* Note that this is an experimental feature - it is here to stay, but
* implementation details may change without notice.
*/
export declare function containsMessageType<T extends object>(msg: T): msg is (T & MessageTypeContainer<T>);