Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Flow support when import #982

@aight8

Description

@aight8

I don't know if this is a bug, maybe it's a flow issue or something I didn't know.
I try to import draft-js and benefit from it flow capabilities but I noticed that it doesn't work.
Is this normal?

import { Editor } from 'draft-js'
This does not work.

import { Editor } from 'draft-js/lib/Draft.js.flow'
This does not work neither.

import Editor from 'draft-js/lib/DraftEditor.react'
This works. autocompletion, validation, everything ok.

Using:
draft.js v0.10
flow v0.38
I using flow-typed, too. There is no draft-js generated stub which could override the draft-js module, so this is good.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions