jsfast
Version:
Fastjs(jsfast) is a useful, lightweight JavaScript library for any types of project.
19 lines (18 loc) • 820 B
TypeScript
import { createFastjsCookie } from "./cookie";
import type { FastjsCookie, FastjsCookieAPI } from "./cookie-types";
import type { CookieOptions } from "./def";
export declare const get: (name: string) => string | null;
export declare const exists: (name: string) => boolean;
export declare const set: (name: string, value: string, options?: CookieOptions) => FastjsCookieAPI;
export declare const remove: (name: string) => FastjsCookie;
declare const _default: {
get: (name: string) => string | null;
exists: (name: string) => boolean;
set: (name: string, value: string, options?: CookieOptions) => FastjsCookieAPI;
remove: (name: string) => FastjsCookie;
create: typeof createFastjsCookie;
};
export default _default;
export * from "./cookie";
export * from "./cookie-types";
export * from "./def";