tgrid
Version:
Grid Computing Framework for TypeScript
22 lines (21 loc) • 381 B
text/typescript
/**
* Common interface for server.
*
* @template State Type of state
* @author Jeongho Nam - https://github.com/samchon
*/
export interface IServer<State extends IServer.State> {
/**
* Current state of the server.
*/
readonly state: State;
}
export namespace IServer {
export const enum State {
NONE = -1,
OPENING,
OPEN,
CLOSING,
CLOSED,
}
}