Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Latest commit

 

History

History
122 lines (69 loc) · 2.79 KB

irelationship.md

File metadata and controls

122 lines (69 loc) · 2.79 KB

redux-data-service > IRelationship

Interface: IRelationship

Classes which wish to use the @relationship decorator (or @belongsTo or @hasMany) should implement this interface.

Type parameters

T

T

Hierarchy

IFieldTypes

↳ IRelationship

IModel

Index

Properties

Methods


Properties

fields

● fields: IModelKeys<T, IFieldType>

Inherited from IFieldTypes.fields

Defined in Model/Decorators/Field.ts:14


relationships

● relationships: object

Defined in Model/Decorators/Relationship.ts:44

Type declaration


validationRules

● validationRules: IModelKeys<T>

Inherited from IValidate.validationRules

Defined in Model/Decorators/Validation.ts:6


Methods

getRelated

getRelated(key: any): any

Defined in Model/Decorators/Relationship.ts:46

Parameters:

Name Type
key any

Returns: any


setRelated

setRelated(key: any, value: any): void

Defined in Model/Decorators/Relationship.ts:48

Parameters:

Name Type
key any
value any

Returns: void


validate

validate(): IModelKeys<T>

Inherited from IValidate.validate

Defined in Model/Decorators/Validation.ts:7

Returns: IModelKeys<T>