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

11 lines
326 B
Plaintext

import { MESSAGE_TYPE } from './message-type-contract';
/**
* 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 function containsMessageType(msg) {
return msg[MESSAGE_TYPE] != null;
}