Compare commits

...

1 Commits

Author SHA1 Message Date
Meghan Denny
e1719f30dc codegen: fix node error builtin types return type 2025-03-10 19:19:53 -07:00

View File

@@ -470,7 +470,7 @@ writeIfNotChanged(
* @param msg The error message
* @param args Additional arguments
*/
declare function $${code}(msg: string, ...args: any[]): ${name};
declare function $${code}(msg: string, ...args: any[]): ${name ?? constructor.name};
`;
for (const con of other_constructors) {