update, text, response
This commit is contained in:
28
node_modules/browserslist/index.d.ts
generated
vendored
28
node_modules/browserslist/index.d.ts
generated
vendored
@@ -166,6 +166,17 @@ declare namespace browserslist {
|
||||
opts?: browserslist.Options
|
||||
): Query[]
|
||||
|
||||
/**
|
||||
* Return queries for specific file inside the project.
|
||||
*
|
||||
* ```js
|
||||
* browserslist.loadConfig({
|
||||
* file: process.cwd()
|
||||
* }) ?? browserslist.defaults
|
||||
* ```
|
||||
*/
|
||||
function loadConfig(options: LoadConfigOptions): string[] | undefined
|
||||
|
||||
function clearCaches(): void
|
||||
|
||||
function parseConfig(string: string): Config
|
||||
@@ -174,13 +185,25 @@ declare namespace browserslist {
|
||||
|
||||
function findConfig(...pathSegments: string[]): Config | undefined
|
||||
|
||||
function findConfigFile(...pathSegments: string[]): string | undefined
|
||||
|
||||
interface LoadConfigOptions {
|
||||
/**
|
||||
* Path to config file
|
||||
* */
|
||||
config?: string
|
||||
|
||||
/**
|
||||
* Path to file inside the project to find Browserslist config
|
||||
* in closest folder
|
||||
*/
|
||||
path?: string
|
||||
|
||||
/**
|
||||
* Environment to choose part of config.
|
||||
*/
|
||||
env?: string
|
||||
}
|
||||
|
||||
function loadConfig(options: LoadConfigOptions): string[] | undefined
|
||||
}
|
||||
|
||||
declare global {
|
||||
@@ -193,6 +216,7 @@ declare global {
|
||||
BROWSERSLIST_ENV?: string
|
||||
BROWSERSLIST_IGNORE_OLD_DATA?: string
|
||||
BROWSERSLIST_STATS?: string
|
||||
BROWSERSLIST_ROOT_PATH?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user