Skip to content

Commit

Permalink
feat: add new outcome symbol for invalid property value in document h…
Browse files Browse the repository at this point in the history
…andling
  • Loading branch information
WMXPY committed Dec 23, 2024
1 parent 1389825 commit ad3c8f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/document/outcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ import { DocumentEditRecord } from "./definition";

// Put Property
export const S_Document_PutProperty_InvalidKey: unique symbol = Symbol("Document_PutProperty_InvalidKey");
export const S_Document_PutProperty_InvalidValue: unique symbol = Symbol("Document_PutProperty_InvalidValue");
export const S_Document_PutProperty_Unknown: unique symbol = Symbol("Document_PutProperty_Unknown");

export type ImbricateDocumentPutPropertyOutcomeSymbol =
| typeof S_Document_PutProperty_InvalidKey
| typeof S_Document_PutProperty_InvalidValue
| typeof S_Document_PutProperty_Unknown;

export const ImbricateDocumentPutPropertyOutcomeSymbolList: ImbricateDocumentPutPropertyOutcomeSymbol[] = [
S_Document_PutProperty_InvalidKey,
S_Document_PutProperty_InvalidValue,
S_Document_PutProperty_Unknown,
];

Expand Down

0 comments on commit ad3c8f9

Please sign in to comment.