Skip to content

Commit a0e4fb4

Browse files
committed
clean up types
1 parent ec64c94 commit a0e4fb4

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

packages/zeego/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zeego",
3-
"version": "1.7.3",
3+
"version": "1.8.0",
44
"description": "Logical UI primitives, made for screens.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

packages/zeego/src/menu/children.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,9 @@ export const pickChildren = <Props = any>(
8585
}
8686
}
8787

88-
type PropsFromElementType<T> = T extends React.ElementType<infer P> ? P : never
89-
9088
export const isInstanceOfComponent = <Props>(
9189
element: React.ReactElement | React.ReactText | undefined,
92-
targetElement: React.ComponentType<Props>
90+
targetElement: React.ComponentType<Props> | React.ElementType<Props>
9391
): element is NonNullable<React.ReactElement<Props>> => {
9492
const matches =
9593
(element as any)?.type === targetElement ||

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"allowUnreachableCode": false,
88
"allowUnusedLabels": false,
99
"esModuleInterop": true,
10-
"importsNotUsedAsValues": "error",
1110
"forceConsistentCasingInFileNames": true,
1211
"jsx": "react",
1312
"lib": ["esnext", "DOM"],

0 commit comments

Comments
 (0)