From e285842cdf889e96903a167611a548ea4d5f20f3 Mon Sep 17 00:00:00 2001 From: Kevin Abestilla Date: Fri, 27 May 2022 21:40:00 +0800 Subject: [PATCH] Update typings --- adonis-typings/kvn-response.ts | 20 ++++++++++---------- package.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/adonis-typings/kvn-response.ts b/adonis-typings/kvn-response.ts index da01025..bbaedda 100644 --- a/adonis-typings/kvn-response.ts +++ b/adonis-typings/kvn-response.ts @@ -2,24 +2,24 @@ import TransformerAbstractI from 'adonis-bumblebee-ts/build/Bumblebee/Transforme declare module '@ioc:Adonis/Core/Response' { interface ResponseContract { - ok(message: String): this + ok(message?: String): this - data(data: {}, message: String): this + data(data: {}, message?: String): this - resource(resource: TransformerAbstractI, meta:{}, message: String): this + resource(resource: TransformerAbstractI, meta?:{}, message?: String): this - accepted(data: {}, message: String): this + accepted(data: {}, message?: String): this - error(errors: {}, message: String): this + error(errors: {}, message?: String): this - unableToProcess(errors: {}, message: String): this + unableToProcess(errors: {}, message?: String): this - notFound(message: String): this + notFound(message?: String): this - forbidden(message: String): this + forbidden(message?: String): this - unauthorized(message: String): this + unauthorized(message?: String): this - badRequest(message: String): this + badRequest(message?: String): this } } diff --git a/package.json b/package.json index d577e39..c4792d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "adonis-kvn-response", - "version": "2.0.5", + "version": "2.0.6", "description": "AdonisJS response helper for REST API", "main": "build/src/providers/KvnResponseProvider.js", "dependencies": {