You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current typings, the only exported property is isEnabled, rendering the library unusable. The only workaround that I could come up with is an explicit cast:
import _screenfull, { Screenfull } from 'screenfull';
const screenfull = _screenfull as Screenfull;
The text was updated successfully, but these errors were encountered:
The current typings for 5.0.0 render the library unusable without an explicit cast. The typings read
and
I suppose the intention is to force a check on
isEnabled
before the API is accessible; however, this would require the interface to beWith the current typings, the only exported property is
isEnabled
, rendering the library unusable. The only workaround that I could come up with is an explicit cast:The text was updated successfully, but these errors were encountered: