UNPKG

@panyam/tsutils

Version:

Some basic TS utils for personal use

18 lines (17 loc) 477 B
import { Timestamp } from "./types"; export declare class BaseEntity { isActive: boolean; createdAt: Timestamp; updatedAt: Timestamp; constructor(config?: any); } export declare class Resource extends BaseEntity { id: string; userId: string; visibility: "public" | "private" | "limited"; visibleTo: string[]; constructor(config?: any); isVisibleTo(userId: string | null): boolean; get version(): number; get hasKey(): boolean; }