diff --git a/CHANGELOG.md b/CHANGELOG.md index e1142b5c..88a5a1d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +# 0.7.3 - 21 Sep 2023 +Bug fix: +- resolve 200 by default when type is not provided + # 0.7.2 - 20 Sep 2023 -Bug Fix: -- Decorator and Store is resolved as `undefined` in `onError` hook +Bug fix: +- decorator and store is resolved as `undefined` in `onError` hook - deepMerge with Module object - Retain comment in `.d.ts` diff --git a/package.json b/package.json index 746c81bf..a204438f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "elysia", "description": "Ergonomic Framework for Human", - "version": "0.7.2", + "version": "0.7.3", "author": { "name": "saltyAom", "url": "https://github.com/SaltyAom", diff --git a/src/index.ts b/src/index.ts index 4d321680..4ec8bc89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1666,7 +1666,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -1733,7 +1737,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -1800,7 +1808,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -1867,7 +1879,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -1934,7 +1950,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -2001,7 +2021,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -2063,7 +2087,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -2130,7 +2158,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -2197,7 +2229,11 @@ export default class Elysia< ? { 200: ReturnType } - : Route['response'] + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } } } @@ -2461,7 +2497,11 @@ export default class Elysia< ? { 200: ReturnType } - : Response + : Route['response'] extends { 200: any } + ? Route['response'] + : { + 200: Route['response'] + } } : never }