How to use the @remirror/core-helpers.omit function in @remirror/core-helpers

To help you get started, we’ve selected a few @remirror/core-helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / prosemirror-utils.spec.ts View on Github external
setTimeout(() => {
        const clonedTr = cloneTransaction(tr);
        expect(omit(tr, ['time'])).toEqual(omit(clonedTr, ['time']));
        done();
      }, 10);
github ifiokjr / remirror / packages / test-keyboard / src / test-keyboard-utils.ts View on Github external
export const cleanKey = (key: SupportedCharacters) => omit(usKeyboardLayout[key], ['shiftKey']);
github ifiokjr / remirror / packages / multishift / src / multishift-utils.ts View on Github external
export const omitUnchangedState = (
  changes: MultishiftStateProps,
  { state, getItemId }: OmitUnchangedParams,
): MultishiftStateProps => {
  return omit(changes, (value, key) => {
    if (isArray(value)) {
      if (key === 'selectedItems') {
        return (
          value.length !== state.selectedItems.length ||
          (value as GItem[]).some((item, index) => getItemId(item) !== getItemId(state.selectedItems[index]))
        );
      }

      if (key === 'highlightedIndexes') {
        return (
          value.length !== state.highlightedIndexes.length ||
          (value as number[]).some((val, index) => val !== state.highlightedIndexes[index])
        );
      }
    }
github ifiokjr / remirror / @remirror / ui-text / src / ui-text.tsx View on Github external
const omitTextProps = (props: GProps) => omit(props, keys as any);