This commit is contained in:
30
node_modules/react-frame-component/index.d.ts
generated
vendored
Normal file
30
node_modules/react-frame-component/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user