You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
399 B
TypeScript
20 lines
399 B
TypeScript
import { store } from 'react-easy-state';
|
|
|
|
export interface IDevice {
|
|
name: string;
|
|
publicKey: string;
|
|
endpoint: string;
|
|
address: string;
|
|
dns: string;
|
|
createdAt: string;
|
|
serverPublicKey: string;
|
|
// TODO: these fields on backend
|
|
// receiveBytes: number;
|
|
// transmitBytes: number;
|
|
// lastHandshakeTime: string;
|
|
}
|
|
|
|
export const AppState = store({
|
|
devices: new Array<IDevice>(),
|
|
});
|