function · Browser and Node
saidify
Fills the version string and SAID fields. fields must list every field in order.
@toip-tools/eventlogView sourceimport { saidify } from "@toip-tools/eventlog";
Declaration
saidify<T extends Record<string, unknown>>(protocol: Protocol, fields: T, saidFields: ("d" | "i")[]): {
raw: string;
body: T;
};
Parameters
protocolrequiredProtocolfieldsrequiredTsaidFieldsrequired("d" | "i")[]
Returns
{ raw: string; body: T; }Returned object
The returned object exposes these properties and methods.
Properties
rawrequiredstringbodyrequiredT