@nestjs-yalc/interfaces
v1.3.3
Published
Shared TypeScript interfaces and utility types used across YALC packages.
Readme
@nestjs-yalc/interfaces
Shared TypeScript interfaces and utility types used across YALC packages.
Use this package when an application or library needs the common YALC shapes without importing heavier runtime packages.
Installation
npm install @nestjs-yalc/interfacesMain Exports
IPagingParamsfor paging/query parameter contracts.- Field mapper types and guards.
- NestJS helper types such as
ImportTypeand decorator type aliases.
Example
import type { IPagingParams } from '@nestjs-yalc/interfaces';
function normalizePaging(params: IPagingParams) {
return {
skip: params.skip ?? 0,
take: params.take ?? 25,
};
}