@yorkie-js/schema 0.6.16-rc2 → 0.6.17

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.
@@ -1,12 +1,3 @@
1
- declare type ArrayRule = {
2
- type: 'array';
3
- } & RuleBase;
4
-
5
- /**
6
- * `buildRuleset` builds a ruleset from the given schema string.
7
- */
8
- export declare function buildRuleset(schema: string): Array<Rule>;
9
-
10
1
  /**
11
2
  * `Diagnostic` represents a diagnostic message.
12
3
  */
@@ -25,30 +16,6 @@ declare type Diagnostic = {
25
16
  };
26
17
  };
27
18
 
28
- declare type ObjectRule = {
29
- type: 'object';
30
- properties: Array<string>;
31
- optional?: Array<string>;
32
- } & RuleBase;
33
-
34
- declare type PrimitiveRule = {
35
- type: PrimitiveType;
36
- } & RuleBase;
37
-
38
- declare type PrimitiveType = 'null' | 'boolean' | 'integer' | 'double' | 'long' | 'string' | 'date' | 'bytes';
39
-
40
- /**
41
- * `Rule` represents a rule for a field in the schema.
42
- */
43
- export declare type Rule = PrimitiveRule | ObjectRule | ArrayRule | YorkieTypeRule;
44
-
45
- declare type RuleBase = {
46
- path: string;
47
- type: RuleType;
48
- };
49
-
50
- export declare type RuleType = 'object' | 'array' | PrimitiveType | YorkieType;
51
-
52
19
  /**
53
20
  * `validate` validates the given schema string and returns a list of errors.
54
21
  */
@@ -56,10 +23,4 @@ export declare function validate(data: string): {
56
23
  errors: Array<Diagnostic>;
57
24
  };
58
25
 
59
- declare type YorkieType = 'yorkie.Text' | 'yorkie.Tree' | 'yorkie.Counter' | 'yorkie.Object' | 'yorkie.Array';
60
-
61
- declare type YorkieTypeRule = {
62
- type: YorkieType;
63
- } & RuleBase;
64
-
65
26
  export { }