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.

DraftEntityType needs to be loosened #868

@jmzhang

Description

@jmzhang

From the doc that introduces Entities, it said

type: A string that indicates what kind of entity it is, e.g. 'LINK', 'MENTION', 'PHOTO'

But in the source code, the type of an Entity is limited to LINK, TOKEN , PHOTO or IMAGE, as seen in src/stubs/ComposedEntityType.js.

So my questions:

  • Is the entity type supposed to be customizable?
  • I'm considering using Flow in my projects, will a custom entity type, say VIDEO, break Flow's type checking?
  • What's the difference between PHOTO and IMAGE? I didn't find any explanations on that.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions