forked from HydraCG/Heracles.ts
/
ISupportedProperty.ts
50 lines (44 loc) · 1 KB
/
ISupportedProperty.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { IHydraResource } from "./IHydraResource";
import { IProperty } from "./IProperty";
/**
* Describes an abstract Hydra property.
* @interface
*/
export interface ISupportedProperty extends IHydraResource {
/**
* Gets the supported property's title.
* @readonly
* @returns {string}
*/
readonly title: string;
/**
* Gets the supported property's description.
* @readonly
* @returns {string}
*/
readonly description: string;
/**
* Gets the actual property.
* @readonly
* @returns {IProperty}
*/
readonly property: IProperty;
/**
* Gets the value indicating whether this property is required.
* @readonly
* @returns {boolean}
*/
readonly required: boolean;
/**
* Gets the value indicating whether this property is readable.
* @readonly
* @returns {boolean}
*/
readonly readable: boolean;
/**
* Gets the value indicating whether this property is writable.
* @readonly
* @returns {boolean}
*/
readonly writable: boolean;
}