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 riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "ANSWER",
"start": 0,
"type": "Identifier"
@ -20,6 +21,7 @@ description: Result of parsing riddle_small.kcl
"init": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "41803",
"start": 0,
"type": "Literal",
@ -29,11 +31,13 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -46,6 +50,7 @@ description: Result of parsing riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "t",
"start": 0,
"type": "Identifier"
@ -67,9 +72,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "ANSWER",
"start": 0,
"type": "Identifier"
@ -79,14 +86,17 @@ description: Result of parsing riddle_small.kcl
"type": "Name",
"type": "Name"
},
"moduleId": 0,
"operator": "*",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "s",
"start": 0,
"type": "Identifier"
@ -100,10 +110,12 @@ description: Result of parsing riddle_small.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"moduleId": 0,
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "12345",
"start": 0,
"type": "Literal",
@ -117,10 +129,12 @@ description: Result of parsing riddle_small.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"moduleId": 0,
"operator": "%",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "214748",
"start": 0,
"type": "Literal",
@ -136,6 +150,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ReturnStatement",
"type": "ReturnStatement"
@ -143,16 +158,19 @@ description: Result of parsing riddle_small.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": "s",
"start": 0,
"type": "Identifier"
@ -164,11 +182,13 @@ description: Result of parsing riddle_small.kcl
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "fn",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -181,6 +201,7 @@ description: Result of parsing riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "xs",
"start": 0,
"type": "Identifier"
@ -188,6 +209,7 @@ description: Result of parsing riddle_small.kcl
"init": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "205804",
"start": 0,
"type": "Literal",
@ -197,11 +219,13 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -214,6 +238,7 @@ description: Result of parsing riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "ys",
"start": 0,
"type": "Identifier"
@ -221,6 +246,7 @@ description: Result of parsing riddle_small.kcl
"init": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "71816",
"start": 0,
"type": "Literal",
@ -230,11 +256,13 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -247,6 +275,7 @@ description: Result of parsing riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "ox",
"start": 0,
"type": "Identifier"
@ -257,6 +286,7 @@ description: Result of parsing riddle_small.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "35",
"start": 0,
"type": "Literal",
@ -266,18 +296,22 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "-",
"right": {
"commentStart": 0,
"end": 0,
"left": {
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "t",
"start": 0,
"type": "Identifier"
@ -288,6 +322,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -295,9 +330,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "xs",
"start": 0,
"type": "Identifier"
@ -308,10 +345,12 @@ description: Result of parsing riddle_small.kcl
"type": "Name"
}
},
"moduleId": 0,
"operator": "%",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "70",
"start": 0,
"type": "Literal",
@ -329,11 +368,13 @@ description: Result of parsing riddle_small.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -346,6 +387,7 @@ description: Result of parsing riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "oy",
"start": 0,
"type": "Identifier"
@ -356,6 +398,7 @@ description: Result of parsing riddle_small.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "35",
"start": 0,
"type": "Literal",
@ -365,18 +408,22 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "-",
"right": {
"commentStart": 0,
"end": 0,
"left": {
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "t",
"start": 0,
"type": "Identifier"
@ -387,6 +434,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -394,9 +442,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "ys",
"start": 0,
"type": "Identifier"
@ -407,10 +457,12 @@ description: Result of parsing riddle_small.kcl
"type": "Name"
}
},
"moduleId": 0,
"operator": "%",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "70",
"start": 0,
"type": "Literal",
@ -428,11 +480,13 @@ description: Result of parsing riddle_small.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -445,6 +499,7 @@ description: Result of parsing riddle_small.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "r",
"start": 0,
"type": "Identifier"
@ -452,13 +507,16 @@ description: Result of parsing riddle_small.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"
@ -469,6 +527,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -476,9 +535,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "XZ",
"start": 0,
"type": "Identifier"
@ -496,6 +557,7 @@ description: Result of parsing riddle_small.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "at",
"start": 0,
"type": "Identifier"
@ -507,9 +569,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "ox",
"start": 0,
"type": "Identifier"
@ -523,9 +587,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "oy",
"start": 0,
"type": "Identifier"
@ -537,6 +603,7 @@ description: Result of parsing riddle_small.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -547,9 +614,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startProfile",
"start": 0,
"type": "Identifier"
@ -560,6 +629,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -572,6 +642,7 @@ description: Result of parsing riddle_small.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -582,6 +653,7 @@ description: Result of parsing riddle_small.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -594,6 +666,7 @@ description: Result of parsing riddle_small.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -605,6 +678,7 @@ description: Result of parsing riddle_small.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -615,9 +689,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -628,6 +704,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -640,6 +717,7 @@ description: Result of parsing riddle_small.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -650,6 +728,7 @@ description: Result of parsing riddle_small.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -663,6 +742,7 @@ description: Result of parsing riddle_small.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -674,6 +754,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -681,6 +762,7 @@ description: Result of parsing riddle_small.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -691,9 +773,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -704,6 +788,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -716,6 +801,7 @@ description: Result of parsing riddle_small.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -727,6 +813,7 @@ description: Result of parsing riddle_small.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -738,6 +825,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -746,6 +834,7 @@ description: Result of parsing riddle_small.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -757,6 +846,7 @@ description: Result of parsing riddle_small.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -767,9 +857,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -780,19 +872,23 @@ description: Result of parsing riddle_small.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"
@ -803,12 +899,14 @@ description: Result of parsing riddle_small.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"
@ -821,6 +919,7 @@ description: Result of parsing riddle_small.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -828,6 +927,7 @@ description: Result of parsing riddle_small.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -843,9 +943,11 @@ description: Result of parsing riddle_small.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
@ -856,6 +958,7 @@ description: Result of parsing riddle_small.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -864,15 +967,18 @@ description: Result of parsing riddle_small.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"
@ -880,12 +986,14 @@ description: Result of parsing riddle_small.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
@ -897,6 +1005,7 @@ description: Result of parsing riddle_small.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {