Skip to content

Address TypeScript Error Preventing Props Passing #137

@rllowman

Description

@rllowman

The Anchor component uses an attributes object to collect common attributes to apply to the wrapping component. This wrapping component is either an a or a Link component depending on a prop value. When the wrapper is a Link component, TypeScript produces an error indicating a type mismatch between the attributes object and the expected props for the Link component.

Currently, we've used a @ts-ignore flag to ignore the error since the props passed via the attribute object are valuable and intentional.

The purpose of this task is to investigate why we are getting a TypeScript error for this type mismatch and to resolve it so that we can remove the @ts-ignore flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions