Skip to content

Commit

Permalink
fix(jsx): add null case
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Oct 28, 2021
1 parent 29582b0 commit 3502890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/jsx.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { VDelta, VElement, VNode, VProps } from './base';

export type JSXVNode = VNode | number | boolean | undefined | null;
export type FC = (props?: VProps, key?: string) => VElement;
export type FC = (props?: VProps, key?: string | null) => VElement;

// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace JSX {
Expand Down

0 comments on commit 3502890

Please sign in to comment.