mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Remove unnecessary use of SingleOrMany<SafeReactNode>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
adb288e48a
commit
e88de58b5d
23 files changed
+44
-44
No files matched your search
@@ -9,7 +9,7 @@ import type { SingleOrMany } from "./types";
|
||||
|
||||
export type SafeReactNode = React.ReactElement | React.ReactText | boolean | null | undefined | Iterable<SafeReactNode>;
|
||||
|
||||
export function toSafeReactChildrenArray(children: SingleOrMany<SafeReactNode>) {
|
||||
export function toSafeReactChildrenArray(children: SafeReactNode) {
|
||||
return React.Children.toArray(children) as (Exclude<SafeReactNode, boolean | null | undefined>)[];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user