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 linear_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 linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -44,9 +49,11 @@ description: Result of parsing linear_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 linear_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 linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -86,6 +95,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -97,6 +107,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -107,9 +118,11 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -132,6 +146,7 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -154,6 +170,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "2",
"start": 0,
"type": "Literal",
@ -165,6 +182,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -175,9 +193,11 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -200,6 +221,7 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "3",
"start": 0,
"type": "Literal",
@ -222,6 +245,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -233,6 +257,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -243,9 +268,11 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -268,6 +296,7 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -291,6 +321,7 @@ description: Result of parsing linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -309,6 +341,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -319,9 +352,11 @@ description: Result of parsing linear_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 linear_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 linear_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 linear_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 linear_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 linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -416,15 +462,18 @@ description: Result of parsing linear_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 linear_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 linear_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 linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -470,6 +522,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -482,6 +535,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -493,6 +547,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -503,6 +558,7 @@ description: Result of parsing linear_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 linear_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 linear_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 linear_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 linear_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 linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -567,9 +629,11 @@ description: Result of parsing linear_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 linear_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 linear_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 linear_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 linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -630,6 +699,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -642,6 +712,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -653,6 +724,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -663,6 +735,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "distance",
"start": 0,
"type": "Identifier"
@ -670,6 +743,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -685,6 +759,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "instances",
"start": 0,
"type": "Identifier"
@ -692,6 +767,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "7",
"start": 0,
"type": "Literal",
@ -707,9 +783,11 @@ description: Result of parsing linear_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"
@ -720,6 +798,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -727,9 +806,11 @@ description: Result of parsing linear_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"
@ -740,11 +821,13 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -752,12 +835,14 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
@ -769,6 +854,7 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {