Debian Codegraph @

node/@bufbuild/protobuf/dist/commonjs/is-message.d.ts

raw
1 import type { MessageShape } from "./types.js";
2 import type { DescMessage } from "./descriptors.js";
3 /**
4 * Determine whether the given `arg` is a message.
5 * If `desc` is set, determine whether `arg` is this specific message.
6 */
7 export declare function isMessage<Desc extends DescMessage>(arg: unknown, schema?: Desc): arg is MessageShape<Desc>;