Better structure and docs
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
export interface ClientMeta {}
|
||||
|
||||
export interface ServerMeta {
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export type ClientMethod =
|
||||
| {
|
||||
method: "Initialized";
|
||||
public_key: string;
|
||||
signature: string;
|
||||
timestamp: number;
|
||||
hostname: string;
|
||||
}
|
||||
| {
|
||||
method: "Error";
|
||||
error: string;
|
||||
};
|
||||
|
||||
export type ServerMethod =
|
||||
| {
|
||||
method: "Initialize";
|
||||
public_key: string;
|
||||
signature: string;
|
||||
timestamp: number;
|
||||
hostname: string;
|
||||
}
|
||||
| {
|
||||
method: "Meta";
|
||||
}
|
||||
| {
|
||||
method: "Error";
|
||||
error: string;
|
||||
};
|
||||
Reference in New Issue
Block a user