Skip to content

viem.contractAt autocomplete #714

@olehmisar

Description

@olehmisar

Describe the feature

typescript supports loose autocomplete. It allows providing vscode hints for strings.

let a: 'Router' | (string & {}) = 'Router';
a = 'anything' // no error
Image

viem.contractAt and others can use this to autocomplete the names of the contracts.

Search terms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions