kit
GitHub
npm
Preparing search index...
@knitkode/api
next
nextApiResponse
Variable nextApiResponse
nextApiResponse
:
{
fail
<
T
>
(
data
:
T
,
msg
?:
string
,
status
?:
number
,
)
:
NextResponse
<
ResultFail
<
T
>
>
;
ok
<
T
>
(
data
:
T
,
msg
?:
string
)
:
NextResponse
<
ResultOk
<
T
>
>
;
}
= ...
Type Declaration
fail
:
function
fail
<
T
>
(
data
:
T
,
msg
?:
string
,
status
?:
number
)
:
NextResponse
<
ResultFail
<
T
>
>
Type Parameters
T
Parameters
data
:
T
Optional
msg
:
string
Optional
status
:
number
Returns
NextResponse
<
ResultFail
<
T
>
>
ok
:
function
ok
<
T
>
(
data
:
T
,
msg
?:
string
)
:
NextResponse
<
ResultOk
<
T
>
>
Type Parameters
T
Parameters
data
:
T
Optional
msg
:
string
Returns
NextResponse
<
ResultOk
<
T
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
kit
Loading...