plugins 2.0 update
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export type RpcResponse = {
|
||||
message: string;
|
||||
count?: number;
|
||||
at: string;
|
||||
};
|
||||
|
||||
export function formatLine(label: string, value: RpcResponse): string {
|
||||
const count = typeof value.count === "number" ? ` count=${value.count}` : "";
|
||||
return `${label}: ${value.message}${count} at ${value.at}`;
|
||||
}
|
||||
Reference in New Issue
Block a user