@typeform/embed
Version:
**Typeform/embed** is the core embed library that lets you embed typeforms to your website using vanilla JavaScript.
5 lines (4 loc) • 558 B
TypeScript
export declare const camelCaseToKebabCase: (value: string) => string;
export type Transformation = 'string' | 'boolean' | 'integer' | 'function' | 'array' | 'record' | 'integerOrString' | 'integerOrBoolean' | 'stringOrBoolean' | 'arrayOrBoolean';
export declare const transformAttributeValue: (value: string | null, transformation: Transformation) => string | number | boolean | Function | Record<string, string> | string[] | undefined;
export declare const loadOptionsFromAttributes: (element: HTMLElement, transform: Record<string, Transformation>) => {};