PsyTask | API Docs
    Preparing search index...

    Type Alias SceneOptions<T>

    Scene options

    type SceneOptions<T extends MaybeGenericComponent> = {
        adapter: ComponentAdapter;
        defaultProps: T extends Component<infer P, infer _>
            ? P
            : Parameters<T>[1] & {};
        root: HTMLDivElement;
        timer: Timer;
    }

    Type Parameters

    • T extends MaybeGenericComponent
    Index

    Properties

    Component adapter

    defaultProps: T extends Component<infer P, infer _> ? P : Parameters<T>[1] & {}

    Default props

    Root element

    timer: Timer

    Control show timing