1 | /** @module data */
|
2 | /**
|
3 | * Interface for data objects that have human-readable names.
|
4 | *
|
5 | * ### Example ###
|
6 | *
|
7 | * export class MyData implements IStringIdentifiable, INamed {
|
8 | * public id: string;
|
9 | * public name: string;
|
10 | * public field1: string;
|
11 | * public field2: number;
|
12 | * ...
|
13 | * }
|
14 | */
|
15 | export interface INamed {
|
16 | /** The object's humand-readable name. */
|
17 | name: string;
|
18 | }
|