kysely-mapper
Version:
Flexible Kysely-based utility for mapping between tables and objects
9 lines • 429 B
TypeScript
/**
* Restrict the values of an object to the specified columns, requiring that
* all of the specified columns be present in the object.
* @param obj The object to restrict.
* @param toColumns The columns to restrict the object to.
* @returns A new object with only the specified columns.
*/
export declare function restrictValues(obj: any, toColumns: Readonly<string[]>): any;
//# sourceMappingURL=restrict-values.d.ts.map