Kitto
    Preparing search index...

    Variable cookieConst

    cookie: {
        get: (name: string, parse_json?: boolean) => null | string;
        get_all: () => Record<string, string>;
        getAll: () => Record<string, string>;
        is_enabled: () => boolean;
        isEnabled: () => boolean;
        parse: (
            set_cookies: string[],
            callback: (
                name: string,
                value: string,
                options: Record<string, string>,
            ) => void,
        ) => void;
        remove: (name: string, path?: string) => void;
        remove_all: () => void;
        removeAll: () => void;
        set: (
            name: string,
            value: string | number | Record<string, unknown>,
            options?: {
                encode?: boolean;
                expires?: number | Date;
                path?: string;
                sameSite?: string;
            },
        ) => void;
    } = ...

    Type declaration

    • get: (name: string, parse_json?: boolean) => null | string
    • get_all: () => Record<string, string>
    • getAll: () => Record<string, string>
    • is_enabled: () => boolean
    • isEnabled: () => boolean
    • parse: (
          set_cookies: string[],
          callback: (
              name: string,
              value: string,
              options: Record<string, string>,
          ) => void,
      ) => void
    • remove: (name: string, path?: string) => void
    • remove_all: () => void
    • removeAll: () => void
    • set: (
          name: string,
          value: string | number | Record<string, unknown>,
          options?: {
              encode?: boolean;
              expires?: number | Date;
              path?: string;
              sameSite?: string;
          },
      ) => void