···2424 value?: string
2525}>
26262727+/**
2828+ * compare function used when sorting object keys, `null` can be used to skip over sorting.
2929+ */
2730export type CompareKeys = ((a: string, b: string) => number) | null | undefined
28312932type RequiredOptions = Required<PrettyFormatOptions>
···489489490490 if (resolved.snapshotFormat && 'plugins' in resolved.snapshotFormat) {
491491 (resolved.snapshotFormat as any).plugins = []
492492+ // TODO: support it via separate config (like DiffOptions) or via `Function.toString()`
493493+ if (typeof resolved.snapshotFormat.compareKeys === 'function') {
494494+ throw new TypeError(`"snapshotFormat.compareKeys" function is not supported.`)
495495+ }
492496 }
493497494498 const UPDATE_SNAPSHOT = resolved.update || process.env.UPDATE_SNAPSHOT