UNPKG

@servant/servant-cli

Version:

Servant builder for node modules. Cli client fro servant.

38 lines (37 loc) 1.56 kB
import { ServantServerInfo, ServantServerDevLog, ServantClientDevLog, ServantSharedDevLog, ServantServerShared } from "@servant/servant-development"; import * as React from "react"; type GroupModulesInfoProps<T> = { text: string; over?: Record<string, T>; items?: Array<T>; item: (key: string, item: T) => JSX.Element; }; export declare function GroupModulesInfo<T>(props: GroupModulesInfoProps<T>): JSX.Element; type ModuleItemProps = { module: string; }; export declare function ModuleItem(props: React.PropsWithChildren<ModuleItemProps>): JSX.Element; type LinkItemProps = { link: ServantServerShared; status: ServantSharedDevLog["status"]; error?: ServantSharedDevLog["error"] | null; debug: boolean; }; export declare function LinkItem(props: LinkItemProps): JSX.Element; type ServerModuleItemProps = ServantServerInfo["server"][string] & { status: ServantServerDevLog["status"]; pid?: number; stdoutCount?: number; stderrCount?: number; }; export declare function ServerModuleItem(props: ServerModuleItemProps): JSX.Element; type ClientModuleItemProps = ServantServerInfo["client"][string] & { domain: string; status: ServantClientDevLog["status"]; }; export declare function ClientModuleItem(props: ClientModuleItemProps): JSX.Element; type ModuleStatusProps = { status: ServantServerDevLog["status"] | ServantClientDevLog["status"] | ServantSharedDevLog["status"]; }; export declare function ModuleStatus(props: ModuleStatusProps): JSX.Element; export {};