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.
 
 
 
 

32 rivejä
914 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 strict-local
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. import type { RawDraftContentBlock } from "./RawDraftContentBlock";
  13. import type { RawDraftEntity } from "./RawDraftEntity";
  14. /**
  15. * A type that represents a composed document as vanilla JavaScript objects,
  16. * with all styles and entities represented as ranges. Corresponding entity
  17. * objects are packaged as objects as well.
  18. *
  19. * This object is especially useful when sending the document state to the
  20. * server for storage, as its representation is more concise than our
  21. * immutable objects.
  22. */
  23. export type RawDraftContentState = {
  24. blocks: Array<RawDraftContentBlock>,
  25. entityMap: {
  26. [key: string]: RawDraftEntity,
  27. ...
  28. },
  29. ...
  30. };