UNPKG

@casl/ability

Version:

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

13 lines (12 loc) 413 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; export declare const cloneLinkedItem: <T extends LinkedItem<any>>(item: T) => T;