Skip to content

TypeScript: any vs unknown #76

Open
@TomokiMiyauci

Description

@TomokiMiyauci

Currently, empty forms are generated as any type.

In TypeScript, there are few situations where the any type is more suitable than the unknown type.

Both are tolerant of assignments.
unknown is more type-safe than any because it is strictly for reference.

I think the unknown type is better suited for the role of a code generator.

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