Open bsastregx opened 1 year ago
Here you go:
declare module "lite-youtube-embed" {
declare class LiteYTEmbed extends HTMLElement {
async getYTPlayer(): Promise<YT.Player>;
}
declare global {
interface HTMLElementTagNameMap {
"lite-youtube": LiteYTEmbed;
}
}
}
YT.Player
comes from @types/youtube
Put that in a declaration file somewhere, and you're golden.
Hi, Greetings!
Do you have a type declarations file? I am importing LiteYTEmbed on a typescript project and getting the following warning: