forgeplus-react/node_modules/draft-js/lib/EntityRange.js.flow

27 lines
675 B
Plaintext

/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule EntityRange
* @format
* @flow
*/
'use strict';
/**
* A plain object representation of an entity attribution.
*
* The `key` value corresponds to the key of the entity in the `entityMap` of
* a `ComposedText` object, not for use with `DraftEntity.get()`.
*/
export type EntityRange = {
key: number;
offset: number;
length: number;
};