Skip to content

Remove Typescript warning to non-defined name when special method names are used #7

@joojscript

Description

@joojscript

When using typescript, we get these kinds of warnings on VSCode:

image

That's because VSCode and the TS Server can't tell that we have this method up above:

renderLink({ children, href }) {
    const link = href + '?ref=create-nullstack-app';
    return (
      <a href={link} target="_blank" rel="noopener noreferrer">
        {children}
      </a>
    )
  }

and that this would do the job internally on Nullstack

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