Skip to content

Instantly share code, notes, and snippets.

@obaranovskyi
Created January 17, 2022 05:38
Show Gist options
  • Save obaranovskyi/712186bed8ad407da59cdefaa0491dd8 to your computer and use it in GitHub Desktop.
Save obaranovskyi/712186bed8ad407da59cdefaa0491dd8 to your computer and use it in GitHub Desktop.
class User {
username: string;
age: number;
constructor(username: string,age: number) {
this.username = username;
this.age = age;
}
static [propName: string]: string | number;
}
User['userCount'] = 0;
const something = User['something'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment