Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

RawDraftContentBlock.js.flow 813 B

3 lat temu
12345678910111213141516171819202122232425262728293031
  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 { DraftBlockType } from "./DraftBlockType";
  13. import type { EntityRange } from "./EntityRange";
  14. import type { InlineStyleRange } from "./InlineStyleRange";
  15. /**
  16. * A plain object representation of a ContentBlock, with all style and entity
  17. * attribution repackaged as range objects.
  18. */
  19. export type RawDraftContentBlock = {
  20. key: ?string,
  21. type: DraftBlockType,
  22. text: string,
  23. depth: ?number,
  24. inlineStyleRanges: ?Array<InlineStyleRange>,
  25. entityRanges: ?Array<EntityRange>,
  26. data?: Object,
  27. children?: Array<RawDraftContentBlock>,
  28. ...
  29. };