Skip to content

Commit

Permalink
Update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin1193 committed May 27, 2022
1 parent 4abfa0c commit e285842
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions adonis-typings/kvn-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e285842

Please sign in to comment.