You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
595 B

  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. import type { DraftEntityMutability } from "./DraftEntityMutability";
  13. import type { DraftEntityType } from "./DraftEntityType";
  14. /**
  15. * A plain object representation of an EntityInstance.
  16. */
  17. export type RawDraftEntity = {
  18. type: DraftEntityType,
  19. mutability: DraftEntityMutability,
  20. data: ?{
  21. [key: string]: any,
  22. ...
  23. },
  24. ...
  25. };