@codesandbox/sdk
Version:
The CodeSandbox SDK
65 lines (64 loc) • 1.2 kB
TypeScript
import { NestedKey } from "./types";
/**
* If any new subscription is added,
* make sure you add it for BasePitcherSubscriptions
*/
export interface ClientSubscriptions {
client?: {
status?: boolean;
};
file?: {
status?: boolean;
selection?: boolean;
ot?: boolean;
};
fs?: {
operations?: boolean;
};
git?: {
status?: boolean;
operations?: boolean;
};
port?: {
status?: boolean;
};
setup?: {
progress?: boolean;
};
shell?: {
status?: boolean;
};
system?: {
metrics?: boolean;
};
}
export interface BasePitcherSubscriptions {
client: {
status?: boolean;
};
file: {
status: boolean;
selection: boolean;
ot: boolean;
};
fs: {
operations: boolean;
};
git: {
status: boolean;
operations: boolean;
};
port: {
status: boolean;
};
setup: {
progress: boolean;
};
shell: {
status?: boolean;
};
system: {
metrics: boolean;
};
}
export type PitcherSubscriptions = NestedKey<BasePitcherSubscriptions>;