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 function_sketch.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "box",
"start": 0,
"type": "Identifier"
@ -28,6 +29,7 @@ description: Result of parsing function_sketch.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "myBox",
"start": 0,
"type": "Identifier"
@ -35,13 +37,16 @@ description: Result of parsing function_sketch.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"
@ -52,6 +57,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -59,9 +65,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "XY",
"start": 0,
"type": "Identifier"
@ -79,6 +87,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "at",
"start": 0,
"type": "Identifier"
@ -89,6 +98,7 @@ description: Result of parsing function_sketch.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -101,6 +111,7 @@ description: Result of parsing function_sketch.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -112,6 +123,7 @@ description: Result of parsing function_sketch.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -122,9 +134,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startProfile",
"start": 0,
"type": "Identifier"
@ -135,6 +149,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -147,6 +162,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -157,6 +173,7 @@ description: Result of parsing function_sketch.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -170,9 +187,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "l",
"start": 0,
"type": "Identifier"
@ -184,6 +203,7 @@ description: Result of parsing function_sketch.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -194,9 +214,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -207,6 +229,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -219,6 +242,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -230,9 +254,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "w",
"start": 0,
"type": "Identifier"
@ -245,6 +271,7 @@ description: Result of parsing function_sketch.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -256,6 +283,7 @@ description: Result of parsing function_sketch.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -266,9 +294,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -279,6 +309,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -291,6 +322,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -301,6 +333,7 @@ description: Result of parsing function_sketch.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -315,9 +348,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "l",
"start": 0,
"type": "Identifier"
@ -329,6 +364,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -336,6 +372,7 @@ description: Result of parsing function_sketch.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -346,9 +383,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -359,19 +398,23 @@ description: Result of parsing function_sketch.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"
@ -382,12 +425,14 @@ description: Result of parsing function_sketch.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"
@ -400,6 +445,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -408,9 +454,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "h",
"start": 0,
"type": "Identifier"
@ -426,9 +474,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
@ -439,6 +489,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -447,15 +498,18 @@ description: Result of parsing function_sketch.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"
@ -465,9 +519,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "myBox",
"start": 0,
"type": "Identifier"
@ -479,6 +535,7 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ReturnStatement",
"type": "ReturnStatement"
@ -486,12 +543,14 @@ description: Result of parsing function_sketch.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
@ -506,12 +565,14 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"params": [
{
"type": "Parameter",
"identifier": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "h",
"start": 0,
"type": "Identifier"
@ -522,6 +583,7 @@ description: Result of parsing function_sketch.kcl
"identifier": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "l",
"start": 0,
"type": "Identifier"
@ -532,6 +594,7 @@ description: Result of parsing function_sketch.kcl
"identifier": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "w",
"start": 0,
"type": "Identifier"
@ -542,11 +605,13 @@ description: Result of parsing function_sketch.kcl
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "fn",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -559,6 +624,7 @@ description: Result of parsing function_sketch.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "fnBox",
"start": 0,
"type": "Identifier"
@ -570,6 +636,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "h",
"start": 0,
"type": "Identifier"
@ -577,6 +644,7 @@ description: Result of parsing function_sketch.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "3",
"start": 0,
"type": "Literal",
@ -592,6 +660,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "l",
"start": 0,
"type": "Identifier"
@ -599,6 +668,7 @@ description: Result of parsing function_sketch.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "6",
"start": 0,
"type": "Literal",
@ -614,6 +684,7 @@ description: Result of parsing function_sketch.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "w",
"start": 0,
"type": "Identifier"
@ -621,6 +692,7 @@ description: Result of parsing function_sketch.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "10",
"start": 0,
"type": "Literal",
@ -636,9 +708,11 @@ description: Result of parsing function_sketch.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "box",
"start": 0,
"type": "Identifier"
@ -649,16 +723,19 @@ description: Result of parsing function_sketch.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -666,12 +743,14 @@ description: Result of parsing function_sketch.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {