source: imaps-frontend/node_modules/side-channel-list/list.d.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 721 bytes
RevLine 
[79a0317]1type ListNode<T, K> = {
2 key: K;
3 next: undefined | ListNode<T, K>;
4 value: T;
5};
6type RootNode<T, K> = {
7 next: undefined | ListNode<T, K>;
8};
9
10export function listGetNode<T, K>(list: RootNode<T, K>, key: ListNode<T, K>['key'], isDelete?: boolean): ListNode<T, K> | undefined;
11export function listGet<T, K>(objects: undefined | RootNode<T, K>, key: ListNode<T, K>['key']): T | undefined;
12export function listSet<T, K>(objects: RootNode<T, K>, key: ListNode<T, K>['key'], value: T): void;
13export function listHas<T, K>(objects: undefined | RootNode<T, K>, key: ListNode<T, K>['key']): boolean;
14export function listDelete<T, K>(objects: undefined | RootNode<T, K>, key: ListNode<T, K>['key']): ListNode<T, K> | undefined;
Note: See TracBrowser for help on using the repository browser.