Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Storage.Implementation

type Implementation = {
KEYS: {
ACCOUNT_UCAN: string;
CID_LOG: string;
UCANS: string;
SESSION: string;
}
;
getItem: <T>(key: string) => Promise<T | null>;
setItem: <T>(key: string, val: T) => Promise<T>;
removeItem: (key: string) => Promise<void>;
clear: () => Promise<void>;
}
;

§Type

§
{
KEYS: {
ACCOUNT_UCAN: string;
CID_LOG: string;
UCANS: string;
SESSION: string;
}
;
getItem: <T>(key: string) => Promise<T | null>;
setItem: <T>(key: string, val: T) => Promise<T>;
removeItem: (key: string) => Promise<void>;
clear: () => Promise<void>;
}
[src]