Skip to content

Commit

Permalink
feat(common): added IdentifiableRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
JBBianchi committed Nov 29, 2023
1 parent 6477f6c commit 4b1dd60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Represents the default abstract implementation of the identifiable record/object
*/
export class IdentifiableRecord<T = string> {
/** The object's unique identifier */
id: T;
}
1 change: 1 addition & 0 deletions projects/neuroglia/common/src/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './model-constructor';
export * from './operation-error';
export * from './storage-entry.interface';
export * from './storage-handler.interface';
export * from './identifiable-record';

0 comments on commit 4b1dd60

Please sign in to comment.