
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@tc-libs/error-interface
Advanced tools
Definisce i contratti TypeScript condivisi per rappresentare errori applicativi e errori di importazione.
Definisce i contratti TypeScript condivisi per rappresentare errori applicativi e errori di importazione.
Questo package non contiene eccezioni NestJS, filtri o logica runtime: espone solo tipi e costanti riusabili.
import {
ERROR_TYPE,
IErrors,
IErrorsImport,
IValidationErrorImport,
} from '@tc-libs/error-interface';
IErrorsRappresenta un singolo errore applicativo normalizzato:
type IErrors = {
message: string;
property: string;
};
Uso tipico:
const errors: IErrors[] = [
{ property: 'email', message: 'email must be valid' },
];
IErrorsImportRappresenta un errore associato a una riga di import:
type IErrorsImport = {
row: number;
file?: string;
errors: IErrors[];
};
Utile per import massivi da CSV/XLSX dove devi restituire al chiamante il dettaglio per record.
IValidationErrorImportVariante pensata per interoperare con class-validator:
type IValidationErrorImport = {
row: number;
file?: string;
errors: ValidationError[];
};
ERROR_TYPEClassifica il tipo di errore:
ERROR_TYPE.DEFAULT;
ERROR_TYPE.IMPORT;
Tipicamente viene usato nei package superiori per differenziare la serializzazione o il trattamento dell'errore.
Usa questo package quando vuoi:
nx build error-interface
nx test error-interface
FAQs
Definisce i contratti TypeScript condivisi per rappresentare errori applicativi e errori di importazione.
We found that @tc-libs/error-interface demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.