@whop/embedded-components-vanilla-js
Version:
Whop Elements loading utility
9 lines (6 loc) • 549 B
TypeScript
import { WhopElementsConstructor, WhopElements } from './lib';
type LoadWhopElements = (...args: ConstructorParameters<WhopElementsConstructor>) => Promise<WhopElements | null>;
declare const findScript: () => HTMLScriptElement | null;
declare const loadScript: () => Promise<WhopElementsConstructor | null>;
declare const initWhopElements: (maybeWhopElements: WhopElementsConstructor | null, args: ConstructorParameters<WhopElementsConstructor>) => WhopElements | null;
export { type LoadWhopElements, findScript, initWhopElements, loadScript };