Timeline for How to get a variable type in Typescript?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 30, 2020 at 11:20 | comment | added | Monir Khan | Depricated now , use if (typeof value === 'string') instead | |
| Aug 16, 2019 at 23:47 | comment | added | 2Toad |
You'll need to import util to access these functions (e.g., import { isString } from 'util';
|
|
| May 17, 2019 at 16:38 | comment | added | Carlos.V |
worked for me, but just for knowing types!!, custom types have to use instanceof
|
|
| Nov 28, 2018 at 16:40 | review | Late answers | |||
| Nov 28, 2018 at 16:41 | |||||
| Nov 28, 2018 at 16:24 | history | answered | Abhilash | CC BY-SA 4.0 |