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
I'm curious whether all types are necessary, or if I can express all types using strings. As in a normal spreadsheet, one does not necessarily have to define the type of a cell as a number for example in order for math functions to operate on it properly.
Therefor when I noticed that RawCellContent can be Date | string | number | boolean | null | undefined, I wondered if it were possible to simplify this to just string in my own wrappers/libraries/interactions, as it would be much more simple to deal with.
So, is there anything that would not work properly if I could never use any type but string? Or could I represent any cell data type using a string input for RawCellContent on setCellValue?
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm curious whether all types are necessary, or if I can express all types using strings. As in a normal spreadsheet, one does not necessarily have to define the type of a cell as a number for example in order for math functions to operate on it properly.
Therefor when I noticed that RawCellContent can be
Date | string | number | boolean | null | undefined
, I wondered if it were possible to simplify this to juststring
in my own wrappers/libraries/interactions, as it would be much more simple to deal with.So, is there anything that would not work properly if I could never use any type but string? Or could I represent any cell data type using a string input for RawCellContent on setCellValue?
Beta Was this translation helpful? Give feedback.
All reactions