js-bao-wss-client / ResourceMetadataResolveResult
Type Alias: ResourceMetadataResolveResult
ResourceMetadataResolveResult = {
resourceId:string;resourceType:string; } | {resourceId:null; }
Result of resourceMetadata.resolve — a discriminated union on whether resourceId is null. A hit carries the owning resource; a miss carries resourceId: null and no resourceType. A value the caller is not permitted to resolve (the category's readRule denies reading the resource it points at) returns the miss shape as well, so the two cannot be told apart.
Union Members
Type Literal
{ resourceId: string; resourceType: string; }
resourceId
resourceId:
string
ID of the resource that owns the value.
resourceType
resourceType:
string
Type of the resource that owns the value.
Type Literal
{ resourceId: null; }
resourceId
resourceId:
null
No readable resource owns this value.