UNPKG

@netly/jest-sorted-by

Version:
22 lines (18 loc) 465 B
/* eslint-disable no-unused-vars */ export {}; interface Options { descending?: boolean; strict?: boolean; key?: string; comparator?: (a: any, b: any) => number; } interface CustomMatchers<R = unknown> { toBeSortedBy(options?: Options): R; } declare global { namespace jest { interface Expect extends CustomMatchers {} interface Matchers<R> extends CustomMatchers<R> {} interface InverseAsymmetricMatchers extends CustomMatchers {} } }