@teambit/workspace
Version:
48 lines (47 loc) • 1.81 kB
TypeScript
import type { GraphqlMain } from '@teambit/graphql';
import type { Workspace } from './workspace';
import type { WorkspaceComponent } from './workspace-component';
declare const _default: (workspace: Workspace, graphql: GraphqlMain) => {
typeDefs: import("graphql").DocumentNode;
resolvers: {
Subscription: {
componentAdded: {
subscribe: () => AsyncIterator<unknown, any, any>;
resolve: (payload: any) => any;
};
componentChanged: {
subscribe: () => AsyncIterator<unknown, any, any>;
resolve: (payload: any) => any;
};
componentRemoved: {
subscribe: () => AsyncIterator<unknown, any, any>;
resolve: (payload: any) => any;
};
};
Component: {
status: (wsComponent: WorkspaceComponent) => Promise<import("./workspace-component").ComponentStatus>;
issuesCount: (wsComponent: WorkspaceComponent) => number;
issues: (wsComponent: WorkspaceComponent) => {
type: string;
description: string;
data: string;
}[] | undefined;
};
Workspace: {
path: (ws: any) => any;
name: (ws: any) => any;
icon: (ws: any) => any;
components: (ws: Workspace, { offset, limit }: {
offset: number;
limit: number;
}) => Promise<import("@teambit/component").Component[]>;
getComponent: (ws: Workspace, { id }: {
id: string;
}) => Promise<import("@teambit/component").Component | null>;
};
Query: {
workspace: () => Workspace;
};
};
};
export default _default;