From 2df79071037fa6b90c879ee0d8567f188a243656 Mon Sep 17 00:00:00 2001 From: Terry Mun Date: Fri, 7 Sep 2018 14:29:17 +0200 Subject: [PATCH] Exposing typing for hidden `host` property in PlayerOptions --- types/youtube/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/youtube/index.d.ts b/types/youtube/index.d.ts index e8e62c22f1..b04d727378 100644 --- a/types/youtube/index.d.ts +++ b/types/youtube/index.d.ts @@ -4,6 +4,7 @@ // Ian Obermiller , // Josh Goldberg // Eliot Fallon +// Terry Mun // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -394,6 +395,11 @@ declare namespace YT * Handlers for events fired by the player. */ events?: Events; + + /** + * Points host to correct origin for CORS + */ + host?: string; } /**