WorkspaceItems
Home > @gooddata/sdk-ui-application-header > WorkspaceItems
WorkspaceItems type
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Conditional type that resolves workspace items based on resolveWorkspaceDescriptor flag. - When true (default): returns IWorkspaceDescriptor[] (resolved descriptors with id, title, description) - When false: returns IAnalyticalWorkspace[] (workspace handles with service methods)
Signature:
export type WorkspaceItems<TResolve extends boolean> = TResolve extends true ? IWorkspaceDescriptor[] : IAnalyticalWorkspace[];
References: IWorkspaceDescriptor, IAnalyticalWorkspace