@twilio/flex-ui
Version:
Twilio Flex UI
10 lines (9 loc) • 401 B
TypeScript
/**
* Retrieves the value of a cookie by its name.
* @param {string} name - The name of the cookie to retrieve.
* @returns {string | undefined} The value of the cookie if found, or undefined if not found.
* @example
* import { TaskHelper } from "@twilio/flex-ui";
* const cookieValue = getCookie("chocolate-chip-cookie");
*/
export declare function getCookie(name: string): string | undefined;