Closed nezuo closed 2 months ago
Using unknown results in unknown?:
unknown
unknown?
https://zap.redblox.dev/playground.html?code=ZXZlbnQgdmFsdWUgPSB7DQogICAgZnJvbTogU2VydmVyLA0KICAgIHR5cGU6IFJlbGlhYmxlLA0KICAgIGNhbGw6IFNpbmdsZVN5bmMsDQogICAgZGF0YTogdW5rbm93biwNCn0NCg==
unknown being optional is intended behaviour. But it should not appear like that in types.
Describe the bug
Using![image](https://github.com/red-blox/zap/assets/48431591/7dca4c58-b766-4a48-b721-67753dccd1ab)
unknown
results inunknown?
:Reproduction
https://zap.redblox.dev/playground.html?code=ZXZlbnQgdmFsdWUgPSB7DQogICAgZnJvbTogU2VydmVyLA0KICAgIHR5cGU6IFJlbGlhYmxlLA0KICAgIGNhbGw6IFNpbmdsZVN5bmMsDQogICAgZGF0YTogdW5rbm93biwNCn0NCg==