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-tursoandGabriel committed 2023-03-24 11:18:18 +02:00
1 parent 3359d7d77b
commit 5716e5abcc
1 file changed
+3 -5
@@ -130,13 +130,11 @@ const getWhiteListMap = (whiteList: WhiteListItem[]) =>
)
);
type ToBeDecorated<TValue, TArgs extends unknown[]> = (
...args: TArgs
) => TValue;
const withNoThrownErrors =
<TValue, TArgs extends unknown[]>(
toBeDecorated: ToBeDecorated<TValue, TArgs>
toBeDecorated: (
...args: TArgs
) => TValue
) =>
(...args: TArgs) => {
try {