How can I use type parameter T in next code block (typeOf, instanceOf,...). T is 'Group'. Is it possible because JavaScript does not have types. Thanx.
export class LocalStorage<T> implements ILocalStorage<T> {
constructor() {}
getKey(): string {
if (T is 'Group')
return "Groups";
}
}