UNPKG

@mercury-labs/auth

Version:

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

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