Skip to main content

WorkspaceRefusal

type

Why the host refused a document: it does not parse, it adds a mod or view the host does not have, its folder drive belongs to another workspace, or the stored file is unreadable.

type WorkspaceRefusal = { readonly kind: 'invalid-document'; readonly issues: string; } | { readonly kind: 'unknown-reference'; readonly message: string; } | { readonly kind: 'drive-owned'; readonly path: string; readonly ownerId: string; } | { readonly kind: 'unreadable-file'; readonly file: string; readonly reason: string; }

Import

import { WorkspaceRefusal } from '@modular/sdk';