Skip to content

Make the use() return a readonly value #9

@s97712

Description

@s97712

The use() function currently allows its return value to be changed, which could result in improper updates.

To avoid this, the use() function should return a value that cannot be altered, ensuring it's not mistakenly updated.

We can implement this by following the Readonly type from type-fest or simply using the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions