Skip to main content
Version: Next

BrowserProvider.supports() method

Check if this provider supports the given browser/platform. Used for filtering before attempting downloads.

Can be synchronous for quick checks or asynchronous if version resolution/network requests are needed.

Signature

interface BrowserProvider {
supports(options: DownloadOptions): Promise<boolean> | boolean;
}

Parameters

Parameter

Type

Description

options

DownloadOptions

Download options to check

Returns:

Promise<boolean> | boolean

True if this provider supports the browser/platform combination