Skip to content

TypeScript error TS2430: Interface 'Moment' incorrectly extends interface 'Object'. #4459

@carmanchris31

Description

@carmanchris31

Full error message using TypeScript 2.7.1:

ERROR in [at-loader] ./node_modules/moment/moment.d.ts:413:13 
    TS2430: Interface 'Moment' incorrectly extends interface 'Object'.
  Types of property 'valueOf' are incompatible.
    Type '() => number' is not assignable to type '() => Object'.
      Type 'number' is not assignable to type 'Object'.

This affects versions 2.18.0 and up, based on the following commit:
19b313d#diff-3dd6cebe542b0e207494192c4bbf4a22

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions