sandstone-mc / sandstone

Sandstone | Next Generation Framework for Minecraft
https://sandstone.dev/
MIT License
173 stars 16 forks source link

`TimeArgument` type could be more precise #126

Closed GrantGryczan closed 1 year ago

GrantGryczan commented 2 years ago

Instead of number | LiteralUnion<'1t' | '1s' | '1d'>, it could be number | `${number}${'t' | 's' | 'd'}` (or something equally restrictive that still includes '1t', '1s', and '1d' as auto-complete options).

TheMrZZ commented 2 years ago

That's right! Didn't think about that. I'll change it.