Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
1234567891011121314151617181920212223
  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
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. import type { DraftHandleValue } from "./DraftHandleValue";
  13. /**
  14. * Utility method for determining whether or not the value returned
  15. * from a handler indicates that it was handled.
  16. */
  17. function isEventHandled(value: DraftHandleValue): boolean {
  18. return value === 'handled' || value === true;
  19. }
  20. module.exports = isEventHandled;