@nestjs-yalc/types
v1.3.3
Published
Type definitions for nestjs yalc
Downloads
83
Readme
@nestjs-yalc/types
Shared ambient and utility type definitions for NestJS-YALC packages.
This package is type-only. It provides global utility types and module declarations used by YALC packages and applications.
Installation
npm install --save-dev @nestjs-yalc/typesMain Exports
globals.d.tswith utility types such asClassType,Exact,XOR,Spread, andHTTPMethods.modules.d.tswith declarations for packages used by the YALC ecosystem.index.d.tsre-exporting the type declaration files.
Example
import type { ClassType } from '@nestjs-yalc/types/globals.d.js';
function create<T>(cls: ClassType<T>): T {
return new cls();
}