diff --git a/src/types/relations.ts b/src/types/relations.ts index c05dc1dd..a48a8b36 100644 --- a/src/types/relations.ts +++ b/src/types/relations.ts @@ -114,7 +114,7 @@ export type ThroughRelationOptions< export type HasOneDecorator = ( model: () => RelatedModel, options?: RelationOptions> -) => TypedDecorator> +) => TypedDecorator | null> /** * Decorator signature to define has many relationship @@ -130,7 +130,7 @@ export type HasManyDecorator = ( export type BelongsToDecorator = ( model: () => RelatedModel, options?: RelationOptions> -) => TypedDecorator> +) => TypedDecorator | null> /** * Decorator signature to define many to many relationship