@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Type Alias DialogData<Component, ComponentProps>

    DialogData: { component: Component } & (
        IsAny<ComponentProps> extends true
            ? { props?: ComponentProps }
            : { props: ComponentProps }
    )

    Surface data for dialog/popover role.

    When ComponentProps is left as the default any, props is optional — unannotated callers can read data.props as any | undefined. When a caller narrows the shape (e.g. AppSurface.component<MyProps>(Dialog, id)), props becomes required and data.props is MyProps — no non-null assertion needed at the spread site.

    Type Parameters

    • Component extends string = string
    • ComponentProps = any