UNPKG
@berish/serber
Version:
latest (1.5.0)
1.5.0
1.4.0
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Serializable and deserializable adaptive adapter with plugins
@berish/serber
/
build
/
withDefaultParams.d.ts
3 lines
(2 loc)
•
287 B
TypeScript
View Raw
1
2
3
import
{
ISerberPlugin
}
from
'./types'
;
export
declare
function
withDefaultParams<
Input
,
Output
,
Params
,
DefaultParams
extends
Partial
<
Params
>>(
plugin
:
ISerberPlugin
<
Input
,
Output
,
Params
>,
defaultParams
:
DefaultParams
):
ISerberPlugin
<
Input
,
Output
,
Omit
<
Params
, keyof
DefaultParams
>>;