Skip to content

Typing issue (possibly to do with strict null types) #52

Closed
@jamiewinder

Description

@jamiewinder

When I build my TypeScript project which uses this library, I get several typing errors in the styles.d.ts file. This appears to be due to the properties of ReactDiffViewerStyles being optional properties, but the type of [key: string] being string, not string | undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions