Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Here is the Typescript module definition if anyone is interested #36

Open
louisremi opened this issue Apr 22, 2022 · 0 comments
Open

Here is the Typescript module definition if anyone is interested #36

louisremi opened this issue Apr 22, 2022 · 0 comments

Comments

@louisremi
Copy link

Not issuing a PR as the project seems long dead

declare module 'chrome-sidebar' {
    import React, { ReactNode } from 'react';

    export interface LifecycleArgs {
        mask: React.LegacyRef,
        frame: React.LegacyRef
    }

    export interface FrameProps {
        url: string;
        delay?: number;
        maskClassName?: string;
        maskStyle?: React.CSSProperties;
        containerClassName?: string;
        containerStyle?: React.CSSProperties;
        iframeClassName?: string;
        iframeStyle?: React.CSSProperties;
        children?: ReactNode;
        containerChildren?: ReactNode;
        onMount?: (LifecycleArgs) => void;
        onUnmount?: (LifecycleArgs) => void;
        onLoad?: (LifecycleArgs) => void
    }

    export const Frame: React.SFC<FrameProps> & {
        isReady: () => boolean;
        toggle: () => void;
    }
};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant