UNPKG

@casl/ability

Version:

CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access

12 lines (11 loc) 332 B
export interface LinkedItem<T> { next: LinkedItem<T> | null; prev: LinkedItem<T> | null; readonly value: T; } export declare function linkedItem<T>(value: T, prev: LinkedItem<T>['prev']): { value: T; prev: LinkedItem<T> | null; next: null; }; export declare function unlinkItem(item: LinkedItem<any>): void;