1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Inline trivial type

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>

Co-authored-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Iku-turso 2023-03-23 17:31:54 +02:00
parent 3359d7d77b
commit 5716e5abcc

View File

@ -130,13 +130,11 @@ const getWhiteListMap = (whiteList: WhiteListItem[]) =>
) )
); );
type ToBeDecorated<TValue, TArgs extends unknown[]> = (
...args: TArgs
) => TValue;
const withNoThrownErrors = const withNoThrownErrors =
<TValue, TArgs extends unknown[]>( <TValue, TArgs extends unknown[]>(
toBeDecorated: ToBeDecorated<TValue, TArgs> toBeDecorated: (
...args: TArgs
) => TValue
) => ) =>
(...args: TArgs) => { (...args: TArgs) => {
try { try {