diff --git a/adonis-typings/relations.ts b/adonis-typings/relations.ts index 701f7eb6..a2e1b3e3 100644 --- a/adonis-typings/relations.ts +++ b/adonis-typings/relations.ts @@ -99,7 +99,7 @@ declare module '@ioc:Adonis/Lucid/Orm' { export type HasOneDecorator = ( model: () => RelatedModel, options?: RelationOptions> - ) => TypedDecorator> + ) => TypedDecorator | null> /** * Decorator signature to define has many relationship @@ -115,7 +115,7 @@ declare module '@ioc:Adonis/Lucid/Orm' { export type BelongsToDecorator = ( model: () => RelatedModel, options?: RelationOptions> - ) => TypedDecorator> + ) => TypedDecorator | null> /** * Decorator signature to define many to many relationship