Skip to content

TypeScript fails: A type literal property cannot have an initializer #81

Closed
@InExtremaRes

Description

@InExtremaRes
  • react-testing-library version: 3.0.1
  • react version: 16.3.2
  • node version: 8.11.1
  • npm version: 5.6.0
  • TypeScript version: 2.8.3

It seems like there is a problem with the typings for TypeScript. If I'm import the library and try to compile TypeScript fails.

import {  } from 'react-testing-library';
/home/node/app/client/node_modules/react-testing-library/typings/index.d.ts
(6,21): A type literal property cannot have an initializer.

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