@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
18 lines (17 loc) • 733 B
TypeScript
export interface CookiesConfig {
expires: string | number | Date;
path?: string;
domain?: string;
secure?: string;
sameSite?: string;
partitioned?: string;
}
declare const Cookie: {
config: (expires: string | number | Date, path?: string, domain?: string, secure?: boolean, sameSite?: string, partitioned?: boolean) => void;
get: (key: string) => string | null;
set: (key: string, value: any, expires?: string | number | Date, path?: string, domain?: string, secure?: boolean, sameSite?: string, partitioned?: boolean) => /*elided*/ any;
remove: (key: string, path?: string, domain?: string) => boolean;
isKey: (key: string) => boolean;
keys: () => string[];
};
export default Cookie;