Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IIdentifiable<K>

Generic interface for data objects that can be uniquely identified by an id.

The type specified in the interface defines the type of id field.

Example

export class MyData implements IIdentifiable<string> {
    public id: string;
    public field1: string;
    public field2: number;
    ...
}

Type parameters

  • K

Hierarchy

Index

Properties

Properties

id

id: K

The unique object identifier of type K.

Generated using TypeDoc