4.1.6 • Published 6 months ago

@types/react-frame-component v4.1.6

Weekly downloads
6,245
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-frame-component

Summary

This package contains type definitions for react-frame-component (https://github.com/ryanseddon/react-frame-component).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-frame-component.

index.d.ts

// Type definitions for react-frame-component 4.1
// Project: https://github.com/ryanseddon/react-frame-component
// Definitions by: Alex Bukurov <https://github.com/abukurov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

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

export default class FrameComponent extends React.Component<FrameComponentProps> {}

export interface FrameContextProps {
    document?: HTMLDocument;
    window?: Window;
}

export const FrameContext: React.Context<FrameContextProps>;

export const FrameContextProvider: React.Provider<FrameContextProps>;

export const FrameContextConsumer: React.Consumer<FrameContextProps>;

export function useFrame(): FrameContextProps;

Additional Details

  • Last updated: Tue, 14 Sep 2021 12:31:29 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Alex Bukurov.