Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

RawDraftContentState.js.flow 914 B

3 anni fa
1234567891011121314151617181920212223242526272829303132
  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. };