Skip to content

Instantly share code, notes, and snippets.

@morintd
Created March 10, 2024 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morintd/8f340c0c36f992e6d94e4602a813a2dd to your computer and use it in GitHub Desktop.
Save morintd/8f340c0c36f992e6d94e4602a813a2dd to your computer and use it in GitHub Desktop.
export abstract class Entity<T extends Record<string, unknown>> {
constructor(protected _data: T) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment