User.ts 251 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import { UserData } from "./types"; export class User { public readonly username: string; constructor(username: string) { this.username = username; } public getData(): UserData { return { username: this.username, }; } }