Skip to content

Error with exporting->importing an opaque flow type when using the readme command #1322

@andrewdelprete

Description

@andrewdelprete

Issue:
When exporting an opaque Flow type and importing it into an entry file for documentation to consume, the CLI throws an error when using the readme command.

Example:

// MyType.js
export opaque type MyType: string = string
// index.js
import type { MyType } from './MyType'
> yarn documentation README ./index.js --document-exported
Error: Unable to find the value MyType in /Users/andrewdelprete/path/to/MyType.js
  • What version of documentation.js are you using?: v13.0.0

  • How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI

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