Skip to content

Commit 36ed79b

Browse files
committed
fix isType parameter types
1 parent 1eebeb6 commit 36ed79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/blockable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const useNotionBlock = (props: Readonly<NotionBlockProps>) => {
7979
return props.blockMap[block.value?.value.parent_id]
8080
})
8181

82-
const isType = (t: any) => {
82+
const isType = (t: string | string[]) => {
8383
if (Array.isArray(t)) {
8484
return visible.value && t.includes(type.value)
8585
}

0 commit comments

Comments
 (0)