UNPKG

@mercury-labs/nest-auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

3 lines (2 loc) 150 B
import { Type } from '@nestjs/common'; export declare function validateEntity<T>(value: unknown, toEntity: Type<T>, whitelist?: boolean): Promise<T>;