discord-mcbe
Preparing search index...
@discord-mcbe/shared
requestPacket
Function requestPacket
requestPacket
<
const
TType
extends
string
,
const
TReqData
extends
GenericSchema
,
const
TResData
extends
GenericSchema
,
>
(
type
:
TType
,
req
:
TReqData
,
res
:
TResData
,
)
:
{
req
:
StrictObjectSchema
<
{
data
:
TReqData
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
TType
,
undefined
>
;
}
,
undefined
,
>
;
res
:
TResData
;
type
:
TType
;
}
Type Parameters
const
TType
extends
string
const
TReqData
extends
GenericSchema
const
TResData
extends
GenericSchema
Parameters
type
:
TType
req
:
TReqData
res
:
TResData
Returns
{
req
:
StrictObjectSchema
<
{
data
:
TReqData
;
requestId
:
StringSchema
<
undefined
>
;
type
:
LiteralSchema
<
TType
,
undefined
>
;
}
,
undefined
,
>
;
res
:
TResData
;
type
:
TType
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
discord-mcbe
Loading...