@yorkie-js/schema 0.6.49 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yorkie-js-schema.d.ts +9 -1
- package/dist/yorkie-js-schema.es.js +4692 -4429
- package/dist/yorkie-js-schema.js +64 -60
- package/package.json +1 -1
|
@@ -58,6 +58,13 @@ declare type RuleBase = {
|
|
|
58
58
|
|
|
59
59
|
export declare type RuleType = 'object' | 'array' | 'union' | 'enum' | 'null' | PrimitiveType | YorkieType;
|
|
60
60
|
|
|
61
|
+
export declare type TreeNodeRule = {
|
|
62
|
+
nodeType: string;
|
|
63
|
+
content?: string;
|
|
64
|
+
marks?: string;
|
|
65
|
+
group?: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
61
68
|
/**
|
|
62
69
|
* `validate` validates the given schema string and returns a list of errors.
|
|
63
70
|
*/
|
|
@@ -67,8 +74,9 @@ export declare function validate(data: string): {
|
|
|
67
74
|
|
|
68
75
|
declare type YorkieType = 'yorkie.Text' | 'yorkie.Tree' | 'yorkie.Counter' | 'yorkie.Object' | 'yorkie.Array';
|
|
69
76
|
|
|
70
|
-
declare type YorkieTypeRule = {
|
|
77
|
+
export declare type YorkieTypeRule = {
|
|
71
78
|
type: YorkieType;
|
|
79
|
+
treeNodes?: Array<TreeNodeRule>;
|
|
72
80
|
} & RuleBase;
|
|
73
81
|
|
|
74
82
|
export { }
|