UNPKG

youtube-iframe-api-module

Version:

A lightweight TypeScript and JavaScript wrapper for the YouTube IFrame API, making it easy to use YouTube videos in npm-based projects and modern browser environments.

11 lines (10 loc) 217 B
declare global { interface Window { onYouTubeIframeAPIReady: () => void; YT: unknown; } } declare global { const YT: any; } export declare const loadScript: (callback: () => void) => void;