Files
coopgo/node_modules/slate-react/dist/utils/range-list.d.ts
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

19 lines
956 B
TypeScript

import { Range } from 'slate';
export declare const shallowCompare: (obj1: {}, obj2: {}) => boolean;
/**
* Check if a list of decorator ranges are equal to another.
*
* PERF: this requires the two lists to also have the ranges inside them in the
* same order, but this is an okay constraint for us since decorations are
* kept in order, and the odd case where they aren't is okay to re-render for.
*/
export declare const isElementDecorationsEqual: (list: Range[], another: Range[]) => boolean;
/**
* Check if a list of decorator ranges are equal to another.
*
* PERF: this requires the two lists to also have the ranges inside them in the
* same order, but this is an okay constraint for us since decorations are
* kept in order, and the odd case where they aren't is okay to re-render for.
*/
export declare const isTextDecorationsEqual: (list: Range[], another: Range[]) => boolean;
//# sourceMappingURL=range-list.d.ts.map