Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
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