Skip to content

tsgo not respecting skipLibCheck #2226

@joshcartme

Description

@joshcartme

Steps to reproduce

A repro is available in https://github.com/joshcartme/tsgo-repros/tree/main/redeclare-global

Behavior with [email protected]

tsc produces no output. If you set skipLibCheck to false tsc produces the same error as tsgo below.

Behavior with tsgo

tsgo produces:

src/types.ts:4:20 - error TS2430: Interface 'Locale' incorrectly extends interface 'MLocaleExt'.
  Types of property 'weekdays' are incompatible.
    Type '{ (): string[]; (m: Moment, format?: string): string; }' is not assignable to type 'string[]'.

4   export interface Locale extends MLocaleExt {}
                     ~~~~~~


Found 1 error in src/types.ts:4

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