mapbox-gl
Version:
A WebGL interactive maps library
17 lines (14 loc) • 494 B
JavaScript
// @flow
;
declare module "@mapbox/mapbox-gl-supported" {
declare type SupportedOptions = {failIfMajorPerformanceCaveat: boolean};
declare type SupportedFn = {
(options?: SupportedOptions): boolean,
webGLContextAttributes: WebGLContextAttributes
};
declare function notSupportedReason(options?: SupportedOptions): ?string;
declare module.exports: {
supported: SupportedFn;
notSupportedReason: typeof notSupportedReason;
}
}