Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Compile Error: interface name must start with a capitalized I #171

@Yang09701194

Description

@Yang09701194

I'm building my-app/src/components/Hello.tsx, and got this error:

(4,18): interface name must start with a capitalized I

image

.

and I need to fix it by adding 'I' before 'Props' to 'IProps':

export interface IProps {
    name: string;
    enthusiasmLevel?: number;
}

function Hello({name, enthusiasmLevel = 1} : IProps){

I think this error will influence all the place of interface name,

should I just update this part of README.md using PR first?

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