Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 384 Bytes
export interface Message {
token?: number;
}
export interface AddRequest extends Message {
command: 'addRequest';
x: number;
y: number;
}
export interface AddResponse extends Message {
command: 'addResponse';
result: number;
}
export type Request = AddRequest /* | another request | ... */;
export type Response = AddResponse /* | another response | ... */;