committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
22
node_modules/browserslist/index.d.ts
generated
vendored
22
node_modules/browserslist/index.d.ts
generated
vendored
@ -6,6 +6,7 @@
|
||||
* ```
|
||||
*
|
||||
* @param queries Browser queries.
|
||||
* @param opts Options.
|
||||
* @returns Array with browser names in Can I Use.
|
||||
*/
|
||||
declare function browserslist(
|
||||
@ -14,6 +15,13 @@ declare function browserslist(
|
||||
): string[]
|
||||
|
||||
declare namespace browserslist {
|
||||
interface Query {
|
||||
compose: 'or' | 'and'
|
||||
type: string
|
||||
query: string
|
||||
not?: true
|
||||
}
|
||||
|
||||
interface Options {
|
||||
/**
|
||||
* Path to processed file. It will be used to find config files.
|
||||
@ -102,6 +110,8 @@ declare namespace browserslist {
|
||||
| undefined
|
||||
}
|
||||
|
||||
let nodeVersions: string[]
|
||||
|
||||
interface Usage {
|
||||
[version: string]: number
|
||||
}
|
||||
@ -142,6 +152,18 @@ declare namespace browserslist {
|
||||
*/
|
||||
function coverage(browsers: readonly string[], stats?: StatsOptions): number
|
||||
|
||||
/**
|
||||
* Get queries AST to analyze the config content.
|
||||
*
|
||||
* @param queries Browser queries.
|
||||
* @param opts Options.
|
||||
* @returns An array of the data of each query in the config.
|
||||
*/
|
||||
function parse(
|
||||
queries?: string | readonly string[] | null,
|
||||
opts?: browserslist.Options
|
||||
): Query[]
|
||||
|
||||
function clearCaches(): void
|
||||
|
||||
function parseConfig(string: string): Config
|
||||
|
Reference in New Issue
Block a user