Skip to content

Commit

Permalink
refactor: allow any for vdom
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 28, 2023
1 parent 0e14f3a commit 5bad17c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/shared/src/vdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ function normalizeChildren(children?: VNodeInput[] | VNodeInput): VNode[] {
*/
export function V(tag: string): VNodeElement;
export function V(tag: string, children: VNodeInput[] | VNodeInput): VNodeElement;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function V(tag: string, attrs: Record<string, any>, children?: VNodeInput[] | VNodeInput): VNodeElement;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function V(tag: string, arg1?: any, children?: VNodeInput[] | VNodeInput): VNodeElement {
const hasAttrs = typeof arg1 === 'object' && !Array.isArray(arg1);
if (!hasAttrs) {
Expand Down

0 comments on commit 5bad17c

Please sign in to comment.