Closed as not planned
Description
⚙ Compilation target
es2015
⚙ Library
none
Missing / Incorrect Definition
I could not find a type that provides the result of typeof. The workaround is
declare let a: unknown;
const b = typeof a;
type Types = typeof b;
Sample Code
export function polymorph(type: Types){
switch(type){
///case ...
}
}
Documentation Link
No response