'How to use requestFileSystemSync API in angular worker?

In regular JavaScript worker, I can use requestFileSystemSync filesystem API as below.

    self.requestFileSystemSync = self.webkitRequestFileSystemSync || self.requestFileSystemSync;
     var fs = requestFileSystemSync(PERSISTENT, 1024);

How to use this in angular worker(.ts) file?

Appreciate your help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source