Upgrade to ts-rs 11.0 for TS type fixes (#7581)

* Bump ts-rs from 10.1.0 to 11.0.1

* Fix breaking changes

* Fix tsc errors

* Update output

* Upgrade to kittycad-modeling-cmds 0.2.124 for ts-rs update

* Update parser snaps

* Update output of gridfinity_bins_stacking_lip sample

* Fix missing field in TS unit tests

* Fix tsc type error with fixed_size_grid project setting
This commit is contained in:
Jonathan Tran
2025-06-24 14:38:43 -04:00
committed by GitHub
parent e4941cb524
commit c7f0a6c2a0
387 changed files with 74834 additions and 24 deletions

View File

@ -13,6 +13,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "exampleSketch",
"start": 0,
"type": "Identifier"
@ -20,13 +21,16 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"init": {
"body": [
{
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
@ -37,6 +41,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -44,9 +49,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "XZ",
"start": 0,
"type": "Identifier"
@ -64,6 +71,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "at",
"start": 0,
"type": "Identifier"
@ -74,6 +82,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -86,6 +95,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -97,6 +107,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -107,9 +118,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startProfile",
"start": 0,
"type": "Identifier"
@ -120,6 +133,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -132,6 +146,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -142,6 +157,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -154,6 +170,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "2",
"start": 0,
"type": "Literal",
@ -165,6 +182,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -175,9 +193,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -188,6 +208,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -200,6 +221,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -210,6 +232,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "3",
"start": 0,
"type": "Literal",
@ -222,6 +245,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -233,6 +257,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -243,9 +268,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -256,6 +283,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -268,6 +296,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -278,6 +307,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -291,6 +321,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "4",
"start": 0,
"type": "Literal",
@ -302,6 +333,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -309,6 +341,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -319,9 +352,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -332,19 +367,23 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "close",
"start": 0,
"type": "Identifier"
@ -355,12 +394,14 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
@ -373,6 +414,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -380,6 +422,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -395,9 +438,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
@ -408,6 +453,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -416,15 +462,18 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -437,6 +486,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "pattn1",
"start": 0,
"type": "Identifier"
@ -448,6 +498,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "axis",
"start": 0,
"type": "Identifier"
@ -458,6 +509,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -470,6 +522,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -482,6 +535,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -493,6 +547,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -503,6 +558,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "instances",
"start": 0,
"type": "Identifier"
@ -510,6 +566,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "7",
"start": 0,
"type": "Literal",
@ -525,6 +582,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "distance",
"start": 0,
"type": "Identifier"
@ -532,6 +590,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "6",
"start": 0,
"type": "Literal",
@ -547,9 +606,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "patternLinear3d",
"start": 0,
"type": "Identifier"
@ -560,6 +621,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -567,9 +629,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "exampleSketch",
"start": 0,
"type": "Identifier"
@ -580,11 +644,13 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -597,6 +663,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "pattn2",
"start": 0,
"type": "Identifier"
@ -608,6 +675,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "axis",
"start": 0,
"type": "Identifier"
@ -618,6 +686,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -630,6 +699,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -642,6 +712,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -653,6 +724,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -663,6 +735,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "center",
"start": 0,
"type": "Identifier"
@ -674,6 +747,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "20",
"start": 0,
"type": "Literal",
@ -685,6 +759,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -694,6 +769,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "20",
"start": 0,
"type": "Literal",
@ -705,6 +781,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -714,6 +791,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "20",
"start": 0,
"type": "Literal",
@ -725,6 +803,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -732,6 +811,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -742,6 +822,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "instances",
"start": 0,
"type": "Identifier"
@ -749,6 +830,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "41",
"start": 0,
"type": "Literal",
@ -764,6 +846,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "arcDegrees",
"start": 0,
"type": "Identifier"
@ -771,6 +854,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "360",
"start": 0,
"type": "Literal",
@ -786,6 +870,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "rotateDuplicates",
"start": 0,
"type": "Identifier"
@ -793,6 +878,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "false",
"start": 0,
"type": "Literal",
@ -805,9 +891,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "patternCircular3d",
"start": 0,
"type": "Identifier"
@ -818,6 +906,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -825,9 +914,11 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "pattn1",
"start": 0,
"type": "Identifier"
@ -838,11 +929,13 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -850,12 +943,14 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
@ -867,6 +962,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {