You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We type our custom graphs like this...
..but when we look at customLine datasets, the id can be a string or undefined. How can we get rid of the undefined type?
Typescript Playground
https://www.typescriptlang.org/play/?ts=5.3.3#code/JYWwDg9gTgLgBDAnmApnA3nAwgCwIawAieMeAzivAL5wBmUEIcARAMb6wB0AVmcwNwAoQQBMUrADYE0ICCICuEtGw4wefDILhxgAOxgootPKzS4CMACrIUAJRQBzYGRhREm7dtbyXjADJ6KABc2KrWqPZOLm4A2swSgcwAunAAZB6e2iIk5JQA8mAwwBC6ZCHoWpmewCIh0XoOQlVwVE2erZVUgl2CrCUucA6UAJIicAC8cAAU2aQUMEHmRDnzADxsPjD+iQB8AJQTOxlQlPJQunCzuWo1cAD0d9NgDKiwiAc1APx1rg1wAD5weS6MS0QIibpAA
Beta Was this translation helpful? Give feedback.
All reactions