Skip to main content

keysToLowercase

@h4ad/serverless-adapter > keysToLowercase

(function) keysToLowercase

Signature:

export declare function keysToLowercase<T extends Record<string, unknown>>(obj: T): \{
[K in keyof T as Lowercase<string & K>]: T[K];
};

Parameters

ParameterTypeDescription
objT

Returns:

{ [K in keyof T as Lowercase<string & K>]: T[K]; }