UNPKG
@oriun/next-api
Version:
latest (0.9.0)
0.9.0
0.8.0
0.7.1
0.7.0
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Next.js API routes with Zod validation
@oriun/next-api
/
dist
/
response.d.ts
4 lines
(3 loc)
•
270 B
TypeScript
View Raw
1
2
3
4
export
declare
function
withCorsHeaders
(
origin
:
string
,
response
:
Response
):
Response
;
export
declare
function
withCookies
(
response
:
Response
,
cookies
:
Record
<
string
,
string
>
):
Response
;
export
declare
function
responseParser
(
response
:
any
,
request
:
Request
):
Response
;