Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created June 5, 2022 20:25
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 AitorAlejandro/6bc32138e422bb38ffcab26169ea9795 to your computer and use it in GitHub Desktop.
Save AitorAlejandro/6bc32138e422bb38ffcab26169ea9795 to your computer and use it in GitHub Desktop.
Identifiable example TS
interface Identifiable<T> {
id: T;
}
class Product implements Identifiable<string> {
id: string;
constructor(id: string) {
this.id = id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment