Yes, there's a few things wrong:
1. If it assumes typescript, it should do `as const` in the first msg
2. If it is python, it should be something like https://x.com/WesleyYue/status/1816157147413278811 which is what I wanted but I didn't want to bother with the typing.