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:
parent
3359d7d77b
commit
5716e5abcc
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user