Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Missing default modifier for TSNamespaceExportDeclaration #288

Closed
@vjeux

Description

@vjeux

What version of typescript-eslint-parser are you using?
b7220fd

What code were you trying to parse?

declare module 'react-native-video' {
  export default class Video { }
}

What did you expect to happen?

Have a way to know that it's default

What happened?

There is no such thing

{ type: 'TSNamespaceExportDeclaration',
  declaration:
   { type: 'ClassDeclaration',
     range: [ 55, 70 ],
     loc: { start: [Object], end: [Object] },
     id:
      { type: 'Identifier',
        range: [Object],
        loc: [Object],
        name: 'Video' },
     body: { type: 'ClassBody', body: [], range: [Object], loc: [Object] },
     superClass: null,
     implements: [],
     decorators: [] },
  range: [ 40, 70 ],
  loc: { start: { line: 2, column: 2 }, end: { line: 2, column: 32 } } }

and prettier prints it as

declare module "react-native-video" {
  export class Video {}
}

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