Skip to content

Commit

Permalink
fix: change default export away from React.Component (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
disintegrator committed Dec 19, 2022
1 parent 94e5df9 commit e4cd1ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.d.ts
Expand Up @@ -2,19 +2,18 @@ declare module 'react-frame-component' {
import * as React from 'react';

export interface FrameComponentProps
extends React.IframeHTMLAttributes<HTMLIFrameElement> {
extends React.IframeHTMLAttributes<HTMLIFrameElement>,
React.RefAttributes<HTMLIFrameElement> {
head?: React.ReactNode | undefined;
mountTarget?: string | undefined;
initialContent?: string | undefined;
contentDidMount?: (() => void) | undefined;
contentDidUpdate?: (() => void) | undefined;
children: React.ReactNode;
ref?: React.Ref<HTMLIFrameElement>;
}

export default class FrameComponent extends React.Component<
FrameComponentProps
> {}
const FrameComponent: React.ForwardRefExoticComponent<FrameComponentProps>;
export default FrameComponent;

export interface FrameContextProps {
document?: HTMLDocument;
Expand Down

0 comments on commit e4cd1ca

Please sign in to comment.