#Custom key types

15 messages ยท Page 1 of 1 (latest)

distant pine
#

Custom key typing

#

Custom key types

distant cipherBOT
#
noahhh#0001

Preview:ts interface PlayerUpgradesDataOther { ...

dry walrus
#

is there a reason you can't put the default on a non-numeric key? (like default:)

distant pine
#

Yeah I just saw another post that says this isn't possible (currently), I'll have to do a work-around like you said above.

#

I would've preferred if this was do-able, instead of putting them into their own object

#

You can mark this as resolved. ๐Ÿ‘

dry walrus
distant pine
#

it's fine, I'll do it like this

#

just slightly more annoying that's all, but I can understand how it makes it unsafe

dry walrus
#

well

#

nothing stopping you from doing:

{
  default: {},
  1: {}
}
distant pine
#

oh you're right, that will probably work better.

#

Thanks ๐Ÿ‘

dry walrus
#

!resolved (note that you can do !resolve yourself too)