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 multi_transform.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "transform",
"start": 0,
"type": "Identifier"
@ -27,6 +28,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"properties": [
{
"commentStart": 0,
@ -34,10 +36,12 @@ description: Result of parsing multi_transform.kcl
"key": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "translate",
"start": 0,
"type": "Identifier"
},
"moduleId": 0,
"start": 0,
"type": "ObjectProperty",
"value": {
@ -49,6 +53,7 @@ description: Result of parsing multi_transform.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "30",
"start": 0,
"type": "Literal",
@ -58,14 +63,17 @@ description: Result of parsing multi_transform.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "*",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "i",
"start": 0,
"type": "Identifier"
@ -82,6 +90,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -94,6 +103,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -105,6 +115,7 @@ description: Result of parsing multi_transform.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -118,6 +129,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"properties": [
{
"commentStart": 0,
@ -125,15 +137,18 @@ description: Result of parsing multi_transform.kcl
"key": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "rotation",
"start": 0,
"type": "Identifier"
},
"moduleId": 0,
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"properties": [
{
"commentStart": 0,
@ -141,10 +156,12 @@ description: Result of parsing multi_transform.kcl
"key": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"moduleId": 0,
"start": 0,
"type": "ObjectProperty",
"value": {
@ -153,6 +170,7 @@ description: Result of parsing multi_transform.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "45",
"start": 0,
"type": "Literal",
@ -162,14 +180,17 @@ description: Result of parsing multi_transform.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "*",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "i",
"start": 0,
"type": "Identifier"
@ -197,12 +218,14 @@ description: Result of parsing multi_transform.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ReturnStatement",
"type": "ReturnStatement"
@ -210,16 +233,19 @@ description: Result of parsing multi_transform.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"params": [
{
"type": "Parameter",
"identifier": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "i",
"start": 0,
"type": "Identifier"
@ -231,11 +257,13 @@ description: Result of parsing multi_transform.kcl
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "fn",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -246,13 +274,16 @@ description: Result of parsing multi_transform.kcl
"expression": {
"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"
@ -263,6 +294,7 @@ description: Result of parsing multi_transform.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -270,9 +302,11 @@ description: Result of parsing multi_transform.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "XY",
"start": 0,
"type": "Identifier"
@ -290,6 +324,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "at",
"start": 0,
"type": "Identifier"
@ -300,6 +335,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -312,6 +348,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -323,6 +360,7 @@ description: Result of parsing multi_transform.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -333,9 +371,11 @@ description: Result of parsing multi_transform.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startProfile",
"start": 0,
"type": "Identifier"
@ -346,6 +386,7 @@ description: Result of parsing multi_transform.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -358,6 +399,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
@ -365,6 +407,7 @@ description: Result of parsing multi_transform.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "10",
"start": 0,
"type": "Literal",
@ -380,6 +423,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "numSides",
"start": 0,
"type": "Identifier"
@ -387,6 +431,7 @@ description: Result of parsing multi_transform.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "4",
"start": 0,
"type": "Literal",
@ -402,6 +447,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "center",
"start": 0,
"type": "Identifier"
@ -412,6 +458,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -424,6 +471,7 @@ description: Result of parsing multi_transform.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -435,6 +483,7 @@ description: Result of parsing multi_transform.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -445,6 +494,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "inscribed",
"start": 0,
"type": "Identifier"
@ -452,6 +502,7 @@ description: Result of parsing multi_transform.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "false",
"start": 0,
"type": "Literal",
@ -464,9 +515,11 @@ description: Result of parsing multi_transform.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "polygon",
"start": 0,
"type": "Identifier"
@ -477,6 +530,7 @@ description: Result of parsing multi_transform.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -489,6 +543,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -496,6 +551,7 @@ description: Result of parsing multi_transform.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "4",
"start": 0,
"type": "Literal",
@ -511,9 +567,11 @@ description: Result of parsing multi_transform.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
@ -524,6 +582,7 @@ description: Result of parsing multi_transform.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -536,6 +595,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "instances",
"start": 0,
"type": "Identifier"
@ -543,6 +603,7 @@ description: Result of parsing multi_transform.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "3",
"start": 0,
"type": "Literal",
@ -558,6 +619,7 @@ description: Result of parsing multi_transform.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "transform",
"start": 0,
"type": "Identifier"
@ -566,9 +628,11 @@ description: Result of parsing multi_transform.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "transform",
"start": 0,
"type": "Identifier"
@ -584,9 +648,11 @@ description: Result of parsing multi_transform.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "patternTransform",
"start": 0,
"type": "Identifier"
@ -597,6 +663,7 @@ description: Result of parsing multi_transform.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -605,10 +672,12 @@ description: Result of parsing multi_transform.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"moduleId": 0,
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
@ -616,6 +685,7 @@ description: Result of parsing multi_transform.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0
}
}