@kaynooo/utils
Preparing search index...
builders/endpoint
declareGetEndpoint
Function declareGetEndpoint
declareGetEndpoint
<
EndpointsConst
extends
Record
<
Key
,
string
>
,
CustomTypes
extends
OnlyAllowedKeys
<
CustomTypes
,
KeysWithVariablesType
<
EndpointsConst
,
keyof
EndpointsConst
>
,
>
=
{}
,
>
(
ENDPOINTS
:
EndpointsConst
,
)
:
{
<
Name
extends
string
|
number
|
symbol
>
(
name
:
Name
)
:
string
;
<
Name
extends
string
|
number
|
symbol
>
(
name
:
Name
,
resolvedParams
:
ResolveParams
<
EndpointsConst
[
Name
]
,
CustomTypes
[
Name
]
extends
Record
<
Key
,
any
>
?
any
[
any
]
:
{}
,
>
,
)
:
string
;
}
Type Parameters
EndpointsConst
extends
Record
<
Key
,
string
>
CustomTypes
extends
OnlyAllowedKeys
<
CustomTypes
,
KeysWithVariablesType
<
EndpointsConst
,
keyof
EndpointsConst
>
,
>
=
{}
Parameters
ENDPOINTS
:
EndpointsConst
Returns
{
<
Name
extends
string
|
number
|
symbol
>
(
name
:
Name
)
:
string
;
<
Name
extends
string
|
number
|
symbol
>
(
name
:
Name
,
resolvedParams
:
ResolveParams
<
EndpointsConst
[
Name
]
,
CustomTypes
[
Name
]
extends
Record
<
Key
,
any
>
?
any
[
any
]
:
{}
,
>
,
)
:
string
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@kaynooo/utils
Loading...