forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
348 B
8 lines
348 B
2 months ago
|
import type { MessageShape } from "./types.js";
|
||
|
import type { DescMessage } from "./descriptors.js";
|
||
|
/**
|
||
|
* Determine whether the given `arg` is a message.
|
||
|
* If `desc` is set, determine whether `arg` is this specific message.
|
||
|
*/
|
||
|
export declare function isMessage<Desc extends DescMessage>(arg: unknown, schema?: Desc): arg is MessageShape<Desc>;
|