object-no-new-keys
Version:
Check, does a plain object (AST/JSON) has any unique keys, not present in a reference object (another AST/JSON)
16 lines (13 loc) • 311 B
TypeScript
import { JSONValue } from "codsen-utils";
declare const version: string;
interface Opts {
mode: 1 | 2;
}
declare const defaults: Opts;
declare function noNewKeys(
input: JSONValue,
reference: JSONValue,
opts?: Partial<Opts>,
): string[];
export { defaults, noNewKeys, version };
export type { Opts };