@newbiz/common-libs
Version:
신사업개발실 서비스/어드민 프론트엔드 공통 라이브러리
15 lines (14 loc) • 451 B
TypeScript
export type CookieObject = {
[key: string]: string;
};
export interface IOption {
domain?: string;
path?: string;
validDays?: number;
isSecure?: boolean;
sameSite?: string;
}
export declare function get(name: string): string;
export declare function getObject<T = CookieObject>(): T;
export declare function set(name: string, value: string, option?: IOption | number): void;
export declare function remove(name: string): void;