diff --git a/types/pannellum/index.d.ts b/types/pannellum/index.d.ts index 69368f3c13552d..da3fdf94f3775b 100644 --- a/types/pannellum/index.d.ts +++ b/types/pannellum/index.d.ts @@ -734,7 +734,7 @@ declare namespace Pannellum { * @param sceneId - The ID of the new scene. * @param config - The configuration of the new scene. */ - addScene(sceneId: string, config: string): this; + addScene(sceneId: string, config: ConfigOptions): this; /** * Remove a scene. diff --git a/types/pannellum/package.json b/types/pannellum/package.json index 83648d7a5ba4e3..eab8348d008ace 100644 --- a/types/pannellum/package.json +++ b/types/pannellum/package.json @@ -12,6 +12,10 @@ { "name": "Shirsh Zibbu", "githubUsername": "zhirzh" + }, + { + "name": "Kyle Hensel", + "githubUsername": "k-yle" } ] } diff --git a/types/pannellum/pannellum-tests.ts b/types/pannellum/pannellum-tests.ts index bba7a182707028..013515d1f16118 100644 --- a/types/pannellum/pannellum-tests.ts +++ b/types/pannellum/pannellum-tests.ts @@ -33,3 +33,17 @@ window.libpannellum.renderer(view); declare const viewer: Pannellum.Viewer; viewer.on("scenechange", (id) => console.log("Scene changed to", id)); viewer.off(); + +viewer.addScene("myScene", { + showFullscreenCtrl: false, + autoLoad: false, + compass: false, + yaw: 0, + type: "equirectangular", + preview: "", + panorama: "", + northOffset: 1.3, +}); +viewer.addScene("myScene", { + // test that all properties are optional +});