@anot/http-response-builder
Version:
A robust and type-safe library for constructing HTTP responses with optional paging and metadata. Designed for TypeScript and JavaScript, it ensures correct typing while simplifying the creation of various HTTP response types.
10 lines (9 loc) • 342 B
TypeScript
export declare class CurrentUser {
private idUser?;
private extraData?;
constructor(idUser?: number | string);
setExtraData(extraData?: Record<string, any>): this;
setCurrentUserId(idUser?: number | string): this;
getCurrentUserId(): number | string | undefined;
getExtraData(): Record<string, any> | undefined;
}