Skip to content

Commit

Permalink
Merge pull request #4025 from preactjs/fix/ts-forward-ref-exotic
Browse files Browse the repository at this point in the history
fix: TS FunctionComponent w/ exactOptionalPropertyTypes
  • Loading branch information
rschristian committed May 25, 2023
2 parents bd593c4 + 88c03e5 commit fb8cfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export type ComponentProps<
export interface FunctionComponent<P = {}> {
(props: RenderableProps<P>, context?: any): VNode<any> | null;
displayName?: string;
defaultProps?: Partial<P>;
defaultProps?: Partial<P> | undefined;
}
export interface FunctionalComponent<P = {}> extends FunctionComponent<P> {}

Expand Down

0 comments on commit fb8cfa9

Please sign in to comment.