Set the fullscreen of a widget with TypeScript

How can I set the fullscreen of a widget withTypeScript? Has anyone an example for TypeScript?
For JavaScript can I use following code snippet:
webix.fullscreen.set(“list”,{ head:“Full list” });

But this is not working for TypeScript…

Anyone an idea?

Hello @vsinner, looks like the fullscreen interface is completely missing from the type definitions (webix.global.d.ts). I apologize for the inconvenience, the correct types will be added in the nearest future.

As a temporary workaround, you can provide your own type definitions defining the interface in question. You will need to add the following code to the webix.global.d.ts file:

interface fullscreen{
	set(view: any, config: any): void;
	exit(): void;
}

//you will also need to add the following (preferrable to add to the section with vars (line 238 and below):

var fullscreen:webix.fullscreen;

Alternatively, you can also get the file via this link.

Thank you for help!