-
-
Notifications
You must be signed in to change notification settings - Fork 156
/
index.d.ts
30 lines (23 loc) · 936 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
declare module 'react-frame-component' {
import * as React from 'react';
export interface FrameComponentProps
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;
}
const FrameComponent: React.ForwardRefExoticComponent<FrameComponentProps>;
export default FrameComponent;
export interface FrameContextProps {
document?: Document;
window?: Window;
}
export const FrameContext: React.Context<FrameContextProps>;
export const FrameContextProvider: React.Provider<FrameContextProps>;
export const FrameContextConsumer: React.Consumer<FrameContextProps>;
export function useFrame(): FrameContextProps;
}