Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit cd446b5

Browse files
committed
Prepare 0.2.2 release
1 parent 3d69203 commit cd446b5

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@desmodder/graph-state",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Typescript definitions for all possible Desmos graph states.",
55
"main": "state.ts",
66
"scripts": {

state_schema.json

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"expressions"
4343
],
4444
"additionalProperties": false,
45-
"description": "Useful sources:\n - core/types/*\n - graphing-calc/models/*\n - core/graphing-calc/json/*\n - core/graphing-calc/migrations/*\n - main/graph_settings\n - https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/desmos/index.d.ts"
45+
"description": "Reference sources:\n - core/types/*\n - graphing-calc/models/*\n - core/graphing-calc/json/*\n - core/graphing-calc/migrations/*\n - main/graph_settings\n - https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/desmos/index.d.ts"
4646
},
4747
"GrapherState": {
4848
"type": "object",
@@ -140,6 +140,16 @@
140140
]
141141
},
142142
"ItemState": {
143+
"anyOf": [
144+
{
145+
"$ref": "#/definitions/NonFolderState"
146+
},
147+
{
148+
"$ref": "#/definitions/FolderState"
149+
}
150+
]
151+
},
152+
"NonFolderState": {
143153
"anyOf": [
144154
{
145155
"$ref": "#/definitions/ExpressionState"
@@ -150,9 +160,6 @@
150160
{
151161
"$ref": "#/definitions/TableState"
152162
},
153-
{
154-
"$ref": "#/definitions/FolderState"
155-
},
156163
{
157164
"$ref": "#/definitions/TextState"
158165
}
@@ -638,7 +645,7 @@
638645
"values"
639646
]
640647
},
641-
"FolderState": {
648+
"TextState": {
642649
"type": "object",
643650
"properties": {
644651
"id": {
@@ -647,19 +654,16 @@
647654
"secret": {
648655
"type": "boolean"
649656
},
657+
"folderId": {
658+
"type": "string"
659+
},
650660
"type": {
651661
"type": "string",
652662
"enum": [
653-
"folder"
663+
"text"
654664
]
655665
},
656-
"hidden": {
657-
"type": "boolean"
658-
},
659-
"collapsed": {
660-
"type": "boolean"
661-
},
662-
"title": {
666+
"text": {
663667
"type": "string"
664668
}
665669
},
@@ -669,7 +673,7 @@
669673
],
670674
"additionalProperties": false
671675
},
672-
"TextState": {
676+
"FolderState": {
673677
"type": "object",
674678
"properties": {
675679
"id": {
@@ -678,16 +682,19 @@
678682
"secret": {
679683
"type": "boolean"
680684
},
681-
"folderId": {
682-
"type": "string"
683-
},
684685
"type": {
685686
"type": "string",
686687
"enum": [
687-
"text"
688+
"folder"
688689
]
689690
},
690-
"text": {
691+
"hidden": {
692+
"type": "boolean"
693+
},
694+
"collapsed": {
695+
"type": "boolean"
696+
},
697+
"title": {
691698
"type": "string"
692699
}
693700
},

0 commit comments

Comments
 (0)