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

35 lines
1.0 KiB
Plaintext

import type { PartialMessageInfo } from "./reflection-info";
export declare class ReflectionTypeCheck {
private readonly fields;
private data;
constructor(info: PartialMessageInfo);
private prepare;
/**
* Is the argument a valid message as specified by the
* reflection information?
*
* Checks all field types recursively. The `depth`
* specifies how deep into the structure the check will be.
*
* With a depth of 0, only the presence of fields
* is checked.
*
* With a depth of 1 or more, the field types are checked.
*
* With a depth of 2 or more, the members of map, repeated
* and message fields are checked.
*
* Message fields will be checked recursively with depth - 1.
*
* The number of map entries / repeated values being checked
* is < depth.
*/
is(message: any, depth: number, allowExcessProperties?: boolean): boolean;
private field;
private message;
private messages;
private scalar;
private scalars;
private mapKeys;
}