🌐 AI搜索 & 代理 主页
Skip to content

useModal create with function type in custom props #2937

@memen45

Description

@memen45

Using the useModal composable with a custom component and custom props is working fine since last update 0.40.9. However, when passing a function in a custom prop, the type is not correct and causes a runtime error. Instead of a function type itself, the prop is typed as the function's return type.

On custom prop with function type, i.e.:

custom_getter_prop: () => getItems(),

It seems to be passed as the function return type instead of a function type.

Originally posted by @memen45 in #2919 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions