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

Parameter

Type

Description

obj

T

Returns:

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