@biomejs/wasm-nodejs 1.9.4 → 1.9.5-nightly.81fdedb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biome_wasm.d.ts +227 -102
- package/biome_wasm.js +255 -428
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
*/
|
|
5
3
|
export function main(): void;
|
|
6
4
|
interface SupportsFeatureParams {
|
|
7
5
|
features: FeatureName;
|
|
@@ -486,6 +484,10 @@ interface PartialJavascriptLinter {
|
|
|
486
484
|
}
|
|
487
485
|
interface PartialJavascriptOrganizeImports {}
|
|
488
486
|
interface PartialJavascriptParser {
|
|
487
|
+
/**
|
|
488
|
+
* Enables parsing of Grit metavariables. Defaults to `false`.
|
|
489
|
+
*/
|
|
490
|
+
gritMetavariables?: boolean;
|
|
489
491
|
/**
|
|
490
492
|
* It enables the experimental and unsafe parsing of parameter decorators
|
|
491
493
|
|
|
@@ -604,13 +606,17 @@ interface OverridePattern {
|
|
|
604
606
|
type VcsClientKind = "git";
|
|
605
607
|
interface Source {
|
|
606
608
|
/**
|
|
607
|
-
*
|
|
609
|
+
* Provides a whole-source code action to sort the imports in the file using import groups and natural ordering.
|
|
608
610
|
*/
|
|
609
|
-
|
|
611
|
+
organizeImports?: RuleAssistConfiguration_for_Options;
|
|
612
|
+
/**
|
|
613
|
+
* Enforce attribute sorting in JSX elements.
|
|
614
|
+
*/
|
|
615
|
+
useSortedAttributes?: RuleAssistConfiguration_for_Null;
|
|
610
616
|
/**
|
|
611
617
|
* Sorts the keys of a JSON object in natural order
|
|
612
618
|
*/
|
|
613
|
-
useSortedKeys?:
|
|
619
|
+
useSortedKeys?: RuleAssistConfiguration_for_Null;
|
|
614
620
|
}
|
|
615
621
|
type QuoteStyle = "double" | "single";
|
|
616
622
|
type ArrowParentheses = "always" | "asNeeded";
|
|
@@ -1014,11 +1020,11 @@ interface Correctness {
|
|
|
1014
1020
|
/**
|
|
1015
1021
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
1016
1022
|
*/
|
|
1017
|
-
noUndeclaredDependencies?:
|
|
1023
|
+
noUndeclaredDependencies?: RuleConfiguration_for_NoUndeclaredDependenciesOptions;
|
|
1018
1024
|
/**
|
|
1019
1025
|
* Prevents the usage of variables that haven't been declared inside the document.
|
|
1020
1026
|
*/
|
|
1021
|
-
noUndeclaredVariables?:
|
|
1027
|
+
noUndeclaredVariables?: RuleConfiguration_for_UndeclaredVariablesOptions;
|
|
1022
1028
|
/**
|
|
1023
1029
|
* Disallow unknown CSS value functions.
|
|
1024
1030
|
*/
|
|
@@ -1173,6 +1179,10 @@ interface Nursery {
|
|
|
1173
1179
|
* Disallow exporting an imported variable.
|
|
1174
1180
|
*/
|
|
1175
1181
|
noExportedImports?: RuleConfiguration_for_Null;
|
|
1182
|
+
/**
|
|
1183
|
+
* Disallow the use of __dirname and __filename in the global scope.
|
|
1184
|
+
*/
|
|
1185
|
+
noGlobalDirnameFilename?: RuleFixConfiguration_for_Null;
|
|
1176
1186
|
/**
|
|
1177
1187
|
* Prevent usage of \<head> element in a Next.js project.
|
|
1178
1188
|
*/
|
|
@@ -1249,6 +1259,10 @@ interface Nursery {
|
|
|
1249
1259
|
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
1250
1260
|
*/
|
|
1251
1261
|
noUselessStringRaw?: RuleConfiguration_for_Null;
|
|
1262
|
+
/**
|
|
1263
|
+
* Disallow the use of useless undefined.
|
|
1264
|
+
*/
|
|
1265
|
+
noUselessUndefined?: RuleFixConfiguration_for_Null;
|
|
1252
1266
|
/**
|
|
1253
1267
|
* Disallow use of @value rule in css modules.
|
|
1254
1268
|
*/
|
|
@@ -1297,6 +1311,10 @@ interface Nursery {
|
|
|
1297
1311
|
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
1298
1312
|
*/
|
|
1299
1313
|
useGoogleFontDisplay?: RuleConfiguration_for_Null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
1316
|
+
*/
|
|
1317
|
+
useGoogleFontPreconnect?: RuleFixConfiguration_for_Null;
|
|
1300
1318
|
/**
|
|
1301
1319
|
* Require for-in loops to include an if statement.
|
|
1302
1320
|
*/
|
|
@@ -1305,6 +1323,10 @@ interface Nursery {
|
|
|
1305
1323
|
* Disallows package private imports.
|
|
1306
1324
|
*/
|
|
1307
1325
|
useImportRestrictions?: RuleConfiguration_for_Null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Enforce specifying the name of GraphQL operations.
|
|
1328
|
+
*/
|
|
1329
|
+
useNamedOperation?: RuleFixConfiguration_for_Null;
|
|
1308
1330
|
/**
|
|
1309
1331
|
* Enforce the sorting of CSS utility classes.
|
|
1310
1332
|
*/
|
|
@@ -1546,7 +1568,7 @@ interface Style {
|
|
|
1546
1568
|
/**
|
|
1547
1569
|
* Prevent extra closing tags for components without children
|
|
1548
1570
|
*/
|
|
1549
|
-
useSelfClosingElements?:
|
|
1571
|
+
useSelfClosingElements?: RuleFixConfiguration_for_UseSelfClosingElementsOptions;
|
|
1550
1572
|
/**
|
|
1551
1573
|
* When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
|
|
1552
1574
|
*/
|
|
@@ -1776,7 +1798,7 @@ interface Suspicious {
|
|
|
1776
1798
|
/**
|
|
1777
1799
|
* Disallow direct use of Object.prototype builtins.
|
|
1778
1800
|
*/
|
|
1779
|
-
noPrototypeBuiltins?:
|
|
1801
|
+
noPrototypeBuiltins?: RuleFixConfiguration_for_Null;
|
|
1780
1802
|
/**
|
|
1781
1803
|
* Prevents React-specific JSX properties from being used.
|
|
1782
1804
|
*/
|
|
@@ -1858,7 +1880,7 @@ interface Suspicious {
|
|
|
1858
1880
|
*/
|
|
1859
1881
|
useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
|
|
1860
1882
|
/**
|
|
1861
|
-
* This rule
|
|
1883
|
+
* This rule checks that the result of a `typeof' expression is compared to a valid value.
|
|
1862
1884
|
*/
|
|
1863
1885
|
useValidTypeof?: RuleFixConfiguration_for_Null;
|
|
1864
1886
|
}
|
|
@@ -1913,7 +1935,12 @@ interface OverrideOrganizeImportsConfiguration {
|
|
|
1913
1935
|
*/
|
|
1914
1936
|
enabled?: boolean;
|
|
1915
1937
|
}
|
|
1916
|
-
type
|
|
1938
|
+
type RuleAssistConfiguration_for_Options =
|
|
1939
|
+
| RuleAssistPlainConfiguration
|
|
1940
|
+
| RuleAssistWithOptions_for_Options;
|
|
1941
|
+
type RuleAssistConfiguration_for_Null =
|
|
1942
|
+
| RuleAssistPlainConfiguration
|
|
1943
|
+
| RuleAssistWithOptions_for_Null;
|
|
1917
1944
|
type RuleFixConfiguration_for_Null =
|
|
1918
1945
|
| RulePlainConfiguration
|
|
1919
1946
|
| RuleWithFixOptions_for_Null;
|
|
@@ -1932,6 +1959,12 @@ type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
|
1932
1959
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1933
1960
|
| RulePlainConfiguration
|
|
1934
1961
|
| RuleWithOptions_for_ComplexityOptions;
|
|
1962
|
+
type RuleConfiguration_for_NoUndeclaredDependenciesOptions =
|
|
1963
|
+
| RulePlainConfiguration
|
|
1964
|
+
| RuleWithOptions_for_NoUndeclaredDependenciesOptions;
|
|
1965
|
+
type RuleConfiguration_for_UndeclaredVariablesOptions =
|
|
1966
|
+
| RulePlainConfiguration
|
|
1967
|
+
| RuleWithOptions_for_UndeclaredVariablesOptions;
|
|
1935
1968
|
type RuleConfiguration_for_UseExhaustiveDependenciesOptions =
|
|
1936
1969
|
| RulePlainConfiguration
|
|
1937
1970
|
| RuleWithOptions_for_UseExhaustiveDependenciesOptions;
|
|
@@ -1974,12 +2007,36 @@ type RuleConfiguration_for_FilenamingConventionOptions =
|
|
|
1974
2007
|
type RuleFixConfiguration_for_NamingConventionOptions =
|
|
1975
2008
|
| RulePlainConfiguration
|
|
1976
2009
|
| RuleWithFixOptions_for_NamingConventionOptions;
|
|
2010
|
+
type RuleFixConfiguration_for_UseSelfClosingElementsOptions =
|
|
2011
|
+
| RulePlainConfiguration
|
|
2012
|
+
| RuleWithFixOptions_for_UseSelfClosingElementsOptions;
|
|
1977
2013
|
type RuleFixConfiguration_for_NoConsoleOptions =
|
|
1978
2014
|
| RulePlainConfiguration
|
|
1979
2015
|
| RuleWithFixOptions_for_NoConsoleOptions;
|
|
1980
2016
|
type RuleFixConfiguration_for_NoDoubleEqualsOptions =
|
|
1981
2017
|
| RulePlainConfiguration
|
|
1982
2018
|
| RuleWithFixOptions_for_NoDoubleEqualsOptions;
|
|
2019
|
+
type RuleAssistPlainConfiguration = "on" | "off";
|
|
2020
|
+
interface RuleAssistWithOptions_for_Options {
|
|
2021
|
+
/**
|
|
2022
|
+
* The severity of the emitted diagnostics by the rule
|
|
2023
|
+
*/
|
|
2024
|
+
level: RuleAssistPlainConfiguration;
|
|
2025
|
+
/**
|
|
2026
|
+
* Rule's options
|
|
2027
|
+
*/
|
|
2028
|
+
options: Options;
|
|
2029
|
+
}
|
|
2030
|
+
interface RuleAssistWithOptions_for_Null {
|
|
2031
|
+
/**
|
|
2032
|
+
* The severity of the emitted diagnostics by the rule
|
|
2033
|
+
*/
|
|
2034
|
+
level: RuleAssistPlainConfiguration;
|
|
2035
|
+
/**
|
|
2036
|
+
* Rule's options
|
|
2037
|
+
*/
|
|
2038
|
+
options: null;
|
|
2039
|
+
}
|
|
1983
2040
|
type RulePlainConfiguration = "warn" | "error" | "info" | "off";
|
|
1984
2041
|
interface RuleWithFixOptions_for_Null {
|
|
1985
2042
|
/**
|
|
@@ -2053,6 +2110,26 @@ interface RuleWithOptions_for_ComplexityOptions {
|
|
|
2053
2110
|
*/
|
|
2054
2111
|
options: ComplexityOptions;
|
|
2055
2112
|
}
|
|
2113
|
+
interface RuleWithOptions_for_NoUndeclaredDependenciesOptions {
|
|
2114
|
+
/**
|
|
2115
|
+
* The severity of the emitted diagnostics by the rule
|
|
2116
|
+
*/
|
|
2117
|
+
level: RulePlainConfiguration;
|
|
2118
|
+
/**
|
|
2119
|
+
* Rule's options
|
|
2120
|
+
*/
|
|
2121
|
+
options: NoUndeclaredDependenciesOptions;
|
|
2122
|
+
}
|
|
2123
|
+
interface RuleWithOptions_for_UndeclaredVariablesOptions {
|
|
2124
|
+
/**
|
|
2125
|
+
* The severity of the emitted diagnostics by the rule
|
|
2126
|
+
*/
|
|
2127
|
+
level: RulePlainConfiguration;
|
|
2128
|
+
/**
|
|
2129
|
+
* Rule's options
|
|
2130
|
+
*/
|
|
2131
|
+
options: UndeclaredVariablesOptions;
|
|
2132
|
+
}
|
|
2056
2133
|
interface RuleWithOptions_for_UseExhaustiveDependenciesOptions {
|
|
2057
2134
|
/**
|
|
2058
2135
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2213,6 +2290,20 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
|
|
|
2213
2290
|
*/
|
|
2214
2291
|
options: NamingConventionOptions;
|
|
2215
2292
|
}
|
|
2293
|
+
interface RuleWithFixOptions_for_UseSelfClosingElementsOptions {
|
|
2294
|
+
/**
|
|
2295
|
+
* The kind of the code actions emitted by the rule
|
|
2296
|
+
*/
|
|
2297
|
+
fix?: FixKind;
|
|
2298
|
+
/**
|
|
2299
|
+
* The severity of the emitted diagnostics by the rule
|
|
2300
|
+
*/
|
|
2301
|
+
level: RulePlainConfiguration;
|
|
2302
|
+
/**
|
|
2303
|
+
* Rule's options
|
|
2304
|
+
*/
|
|
2305
|
+
options: UseSelfClosingElementsOptions;
|
|
2306
|
+
}
|
|
2216
2307
|
interface RuleWithFixOptions_for_NoConsoleOptions {
|
|
2217
2308
|
/**
|
|
2218
2309
|
* The kind of the code actions emitted by the rule
|
|
@@ -2241,6 +2332,10 @@ interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
|
|
|
2241
2332
|
*/
|
|
2242
2333
|
options: NoDoubleEqualsOptions;
|
|
2243
2334
|
}
|
|
2335
|
+
interface Options {
|
|
2336
|
+
importGroups?: ImportGroup[];
|
|
2337
|
+
legacy?: boolean;
|
|
2338
|
+
}
|
|
2244
2339
|
type FixKind = "none" | "safe" | "unsafe";
|
|
2245
2340
|
interface AllowDomainOptions {
|
|
2246
2341
|
/**
|
|
@@ -2272,6 +2367,26 @@ interface ComplexityOptions {
|
|
|
2272
2367
|
*/
|
|
2273
2368
|
maxAllowedComplexity?: number;
|
|
2274
2369
|
}
|
|
2370
|
+
interface NoUndeclaredDependenciesOptions {
|
|
2371
|
+
/**
|
|
2372
|
+
* If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.
|
|
2373
|
+
*/
|
|
2374
|
+
devDependencies?: DependencyAvailability;
|
|
2375
|
+
/**
|
|
2376
|
+
* If set to `false`, then the rule will show an error when `optionalDependencies` are imported. Defaults to `true`.
|
|
2377
|
+
*/
|
|
2378
|
+
optionalDependencies?: DependencyAvailability;
|
|
2379
|
+
/**
|
|
2380
|
+
* If set to `false`, then the rule will show an error when `peerDependencies` are imported. Defaults to `true`.
|
|
2381
|
+
*/
|
|
2382
|
+
peerDependencies?: DependencyAvailability;
|
|
2383
|
+
}
|
|
2384
|
+
interface UndeclaredVariablesOptions {
|
|
2385
|
+
/**
|
|
2386
|
+
* Check undeclared types.
|
|
2387
|
+
*/
|
|
2388
|
+
checkTypes?: boolean;
|
|
2389
|
+
}
|
|
2275
2390
|
interface UseExhaustiveDependenciesOptions {
|
|
2276
2391
|
/**
|
|
2277
2392
|
* List of hooks of which the dependencies should be validated.
|
|
@@ -2295,7 +2410,7 @@ interface UseImportExtensionsOptions {
|
|
|
2295
2410
|
}
|
|
2296
2411
|
interface RestrictedImportsOptions {
|
|
2297
2412
|
/**
|
|
2298
|
-
* A list of
|
|
2413
|
+
* A list of import paths that should trigger the rule.
|
|
2299
2414
|
*/
|
|
2300
2415
|
paths: {};
|
|
2301
2416
|
}
|
|
@@ -2351,6 +2466,10 @@ interface FilenamingConventionOptions {
|
|
|
2351
2466
|
* Allowed cases for file names.
|
|
2352
2467
|
*/
|
|
2353
2468
|
filenameCases: FilenameCases;
|
|
2469
|
+
/**
|
|
2470
|
+
* Regular expression to enforce
|
|
2471
|
+
*/
|
|
2472
|
+
match?: Regex;
|
|
2354
2473
|
/**
|
|
2355
2474
|
* If `false`, then non-ASCII characters are allowed.
|
|
2356
2475
|
*/
|
|
@@ -2378,6 +2497,9 @@ interface NamingConventionOptions {
|
|
|
2378
2497
|
*/
|
|
2379
2498
|
strictCase: boolean;
|
|
2380
2499
|
}
|
|
2500
|
+
interface UseSelfClosingElementsOptions {
|
|
2501
|
+
ignoreHtmlElements?: boolean;
|
|
2502
|
+
}
|
|
2381
2503
|
interface NoConsoleOptions {
|
|
2382
2504
|
/**
|
|
2383
2505
|
* Allowed calls on the console object.
|
|
@@ -2392,6 +2514,8 @@ If `false`, no such exception will be made.
|
|
|
2392
2514
|
*/
|
|
2393
2515
|
ignoreNull: boolean;
|
|
2394
2516
|
}
|
|
2517
|
+
type ImportGroup = PredefinedImportGroup | Regex;
|
|
2518
|
+
type DependencyAvailability = boolean | string[];
|
|
2395
2519
|
interface Hook {
|
|
2396
2520
|
/**
|
|
2397
2521
|
* The "position" of the closure function, starting from zero.
|
|
@@ -2421,6 +2545,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
|
|
|
2421
2545
|
type Accessibility = "noPublic" | "explicit" | "none";
|
|
2422
2546
|
type ConsistentArrayType = "shorthand" | "generic";
|
|
2423
2547
|
type FilenameCases = FilenameCase[];
|
|
2548
|
+
type Regex = string;
|
|
2424
2549
|
interface Convention {
|
|
2425
2550
|
/**
|
|
2426
2551
|
* String cases to enforce
|
|
@@ -2436,6 +2561,7 @@ interface Convention {
|
|
|
2436
2561
|
selector: Selector;
|
|
2437
2562
|
}
|
|
2438
2563
|
type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
|
|
2564
|
+
type PredefinedImportGroup = ":blank-line:" | ":bun:" | ":node:" | ":types:";
|
|
2439
2565
|
type StableHookResult = boolean | number[];
|
|
2440
2566
|
type FilenameCase =
|
|
2441
2567
|
| "camelCase"
|
|
@@ -2444,7 +2570,6 @@ type FilenameCase =
|
|
|
2444
2570
|
| "PascalCase"
|
|
2445
2571
|
| "snake_case";
|
|
2446
2572
|
type Formats = Format[];
|
|
2447
|
-
type Regex = string;
|
|
2448
2573
|
interface Selector {
|
|
2449
2574
|
/**
|
|
2450
2575
|
* Declaration kind
|
|
@@ -2762,6 +2887,7 @@ type Category =
|
|
|
2762
2887
|
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2763
2888
|
| "lint/nursery/noEnum"
|
|
2764
2889
|
| "lint/nursery/noExportedImports"
|
|
2890
|
+
| "lint/nursery/noGlobalDirnameFilename"
|
|
2765
2891
|
| "lint/nursery/noHeadElement"
|
|
2766
2892
|
| "lint/nursery/noHeadImportInDocument"
|
|
2767
2893
|
| "lint/nursery/noImgElement"
|
|
@@ -2797,6 +2923,7 @@ type Category =
|
|
|
2797
2923
|
| "lint/nursery/noUnusedFunctionParameters"
|
|
2798
2924
|
| "lint/nursery/noUselessEscapeInRegex"
|
|
2799
2925
|
| "lint/nursery/noUselessStringRaw"
|
|
2926
|
+
| "lint/nursery/noUselessUndefined"
|
|
2800
2927
|
| "lint/nursery/noValueAtRule"
|
|
2801
2928
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2802
2929
|
| "lint/nursery/useAriaPropsSupportedByRole"
|
|
@@ -2810,9 +2937,11 @@ type Category =
|
|
|
2810
2937
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
2811
2938
|
| "lint/nursery/useExplicitType"
|
|
2812
2939
|
| "lint/nursery/useGoogleFontDisplay"
|
|
2940
|
+
| "lint/nursery/useGoogleFontPreconnect"
|
|
2813
2941
|
| "lint/nursery/useGuardForIn"
|
|
2814
2942
|
| "lint/nursery/useImportRestrictions"
|
|
2815
2943
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2944
|
+
| "lint/nursery/useNamedOperation"
|
|
2816
2945
|
| "lint/nursery/useSortedClasses"
|
|
2817
2946
|
| "lint/nursery/useStrictMode"
|
|
2818
2947
|
| "lint/nursery/useTrimStartEnd"
|
|
@@ -3051,6 +3180,7 @@ interface PullActionsParams {
|
|
|
3051
3180
|
path: BiomePath;
|
|
3052
3181
|
range?: TextRange;
|
|
3053
3182
|
skip: RuleCode[];
|
|
3183
|
+
suppression_reason?: string;
|
|
3054
3184
|
}
|
|
3055
3185
|
interface PullActionsResult {
|
|
3056
3186
|
actions: CodeAction[];
|
|
@@ -3061,7 +3191,7 @@ interface CodeAction {
|
|
|
3061
3191
|
suggestion: CodeSuggestion;
|
|
3062
3192
|
}
|
|
3063
3193
|
type ActionCategory =
|
|
3064
|
-
|
|
|
3194
|
+
| { QuickFix: string }
|
|
3065
3195
|
| { Refactor: RefactorKind }
|
|
3066
3196
|
| { Source: SourceActionKind }
|
|
3067
3197
|
| { Other: string };
|
|
@@ -3118,8 +3248,9 @@ interface FixFileParams {
|
|
|
3118
3248
|
rule_categories: RuleCategories;
|
|
3119
3249
|
should_format: boolean;
|
|
3120
3250
|
skip: RuleCode[];
|
|
3251
|
+
suppression_reason?: string;
|
|
3121
3252
|
}
|
|
3122
|
-
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
|
|
3253
|
+
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
|
|
3123
3254
|
interface FixFileResult {
|
|
3124
3255
|
/**
|
|
3125
3256
|
* List of all the code actions applied to the file
|
|
@@ -3165,119 +3296,113 @@ interface RenameResult {
|
|
|
3165
3296
|
}
|
|
3166
3297
|
|
|
3167
3298
|
|
|
3168
|
-
/**
|
|
3169
|
-
*/
|
|
3170
3299
|
export class DiagnosticPrinter {
|
|
3171
3300
|
free(): void;
|
|
3172
|
-
/**
|
|
3173
|
-
* @param {string} file_name
|
|
3174
|
-
* @param {string} file_source
|
|
3175
|
-
*/
|
|
3301
|
+
/**
|
|
3302
|
+
* @param {string} file_name
|
|
3303
|
+
* @param {string} file_source
|
|
3304
|
+
*/
|
|
3176
3305
|
constructor(file_name: string, file_source: string);
|
|
3177
|
-
/**
|
|
3178
|
-
* @param {Diagnostic} diagnostic
|
|
3179
|
-
*/
|
|
3306
|
+
/**
|
|
3307
|
+
* @param {Diagnostic} diagnostic
|
|
3308
|
+
*/
|
|
3180
3309
|
print_simple(diagnostic: Diagnostic): void;
|
|
3181
|
-
/**
|
|
3182
|
-
* @param {Diagnostic} diagnostic
|
|
3183
|
-
*/
|
|
3310
|
+
/**
|
|
3311
|
+
* @param {Diagnostic} diagnostic
|
|
3312
|
+
*/
|
|
3184
3313
|
print_verbose(diagnostic: Diagnostic): void;
|
|
3185
|
-
/**
|
|
3186
|
-
* @returns {string}
|
|
3187
|
-
*/
|
|
3314
|
+
/**
|
|
3315
|
+
* @returns {string}
|
|
3316
|
+
*/
|
|
3188
3317
|
finish(): string;
|
|
3189
3318
|
}
|
|
3190
|
-
/**
|
|
3191
|
-
*/
|
|
3192
3319
|
export class Workspace {
|
|
3193
3320
|
free(): void;
|
|
3194
|
-
/**
|
|
3195
|
-
*/
|
|
3196
3321
|
constructor();
|
|
3197
|
-
/**
|
|
3198
|
-
* @param {SupportsFeatureParams} params
|
|
3199
|
-
* @returns {FileFeaturesResult}
|
|
3200
|
-
*/
|
|
3322
|
+
/**
|
|
3323
|
+
* @param {SupportsFeatureParams} params
|
|
3324
|
+
* @returns {FileFeaturesResult}
|
|
3325
|
+
*/
|
|
3201
3326
|
fileFeatures(params: SupportsFeatureParams): FileFeaturesResult;
|
|
3202
|
-
/**
|
|
3203
|
-
* @param {UpdateSettingsParams} params
|
|
3204
|
-
*/
|
|
3327
|
+
/**
|
|
3328
|
+
* @param {UpdateSettingsParams} params
|
|
3329
|
+
*/
|
|
3205
3330
|
updateSettings(params: UpdateSettingsParams): void;
|
|
3206
|
-
/**
|
|
3207
|
-
* @param {RegisterProjectFolderParams} params
|
|
3208
|
-
* @returns {ProjectKey}
|
|
3209
|
-
*/
|
|
3331
|
+
/**
|
|
3332
|
+
* @param {RegisterProjectFolderParams} params
|
|
3333
|
+
* @returns {ProjectKey}
|
|
3334
|
+
*/
|
|
3210
3335
|
registerProjectFolder(params: RegisterProjectFolderParams): ProjectKey;
|
|
3211
|
-
/**
|
|
3212
|
-
* @param {OpenFileParams} params
|
|
3213
|
-
*/
|
|
3336
|
+
/**
|
|
3337
|
+
* @param {OpenFileParams} params
|
|
3338
|
+
*/
|
|
3214
3339
|
openFile(params: OpenFileParams): void;
|
|
3215
|
-
/**
|
|
3216
|
-
* @param {GetFileContentParams} params
|
|
3217
|
-
* @returns {string}
|
|
3218
|
-
*/
|
|
3340
|
+
/**
|
|
3341
|
+
* @param {GetFileContentParams} params
|
|
3342
|
+
* @returns {string}
|
|
3343
|
+
*/
|
|
3219
3344
|
getFileContent(params: GetFileContentParams): string;
|
|
3220
|
-
/**
|
|
3221
|
-
* @param {GetSyntaxTreeParams} params
|
|
3222
|
-
* @returns {GetSyntaxTreeResult}
|
|
3223
|
-
*/
|
|
3345
|
+
/**
|
|
3346
|
+
* @param {GetSyntaxTreeParams} params
|
|
3347
|
+
* @returns {GetSyntaxTreeResult}
|
|
3348
|
+
*/
|
|
3224
3349
|
getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
|
|
3225
|
-
/**
|
|
3226
|
-
* @param {GetControlFlowGraphParams} params
|
|
3227
|
-
* @returns {string}
|
|
3228
|
-
*/
|
|
3350
|
+
/**
|
|
3351
|
+
* @param {GetControlFlowGraphParams} params
|
|
3352
|
+
* @returns {string}
|
|
3353
|
+
*/
|
|
3229
3354
|
getControlFlowGraph(params: GetControlFlowGraphParams): string;
|
|
3230
|
-
/**
|
|
3231
|
-
* @param {GetFormatterIRParams} params
|
|
3232
|
-
* @returns {string}
|
|
3233
|
-
*/
|
|
3355
|
+
/**
|
|
3356
|
+
* @param {GetFormatterIRParams} params
|
|
3357
|
+
* @returns {string}
|
|
3358
|
+
*/
|
|
3234
3359
|
getFormatterIr(params: GetFormatterIRParams): string;
|
|
3235
|
-
/**
|
|
3236
|
-
* @param {ChangeFileParams} params
|
|
3237
|
-
*/
|
|
3360
|
+
/**
|
|
3361
|
+
* @param {ChangeFileParams} params
|
|
3362
|
+
*/
|
|
3238
3363
|
changeFile(params: ChangeFileParams): void;
|
|
3239
|
-
/**
|
|
3240
|
-
* @param {CloseFileParams} params
|
|
3241
|
-
*/
|
|
3364
|
+
/**
|
|
3365
|
+
* @param {CloseFileParams} params
|
|
3366
|
+
*/
|
|
3242
3367
|
closeFile(params: CloseFileParams): void;
|
|
3243
|
-
/**
|
|
3244
|
-
* @param {PullDiagnosticsParams} params
|
|
3245
|
-
* @returns {PullDiagnosticsResult}
|
|
3246
|
-
*/
|
|
3368
|
+
/**
|
|
3369
|
+
* @param {PullDiagnosticsParams} params
|
|
3370
|
+
* @returns {PullDiagnosticsResult}
|
|
3371
|
+
*/
|
|
3247
3372
|
pullDiagnostics(params: PullDiagnosticsParams): PullDiagnosticsResult;
|
|
3248
|
-
/**
|
|
3249
|
-
* @param {PullActionsParams} params
|
|
3250
|
-
* @returns {PullActionsResult}
|
|
3251
|
-
*/
|
|
3373
|
+
/**
|
|
3374
|
+
* @param {PullActionsParams} params
|
|
3375
|
+
* @returns {PullActionsResult}
|
|
3376
|
+
*/
|
|
3252
3377
|
pullActions(params: PullActionsParams): PullActionsResult;
|
|
3253
|
-
/**
|
|
3254
|
-
* @param {FormatFileParams} params
|
|
3255
|
-
* @returns {any}
|
|
3256
|
-
*/
|
|
3378
|
+
/**
|
|
3379
|
+
* @param {FormatFileParams} params
|
|
3380
|
+
* @returns {any}
|
|
3381
|
+
*/
|
|
3257
3382
|
formatFile(params: FormatFileParams): any;
|
|
3258
|
-
/**
|
|
3259
|
-
* @param {FormatRangeParams} params
|
|
3260
|
-
* @returns {any}
|
|
3261
|
-
*/
|
|
3383
|
+
/**
|
|
3384
|
+
* @param {FormatRangeParams} params
|
|
3385
|
+
* @returns {any}
|
|
3386
|
+
*/
|
|
3262
3387
|
formatRange(params: FormatRangeParams): any;
|
|
3263
|
-
/**
|
|
3264
|
-
* @param {FormatOnTypeParams} params
|
|
3265
|
-
* @returns {any}
|
|
3266
|
-
*/
|
|
3388
|
+
/**
|
|
3389
|
+
* @param {FormatOnTypeParams} params
|
|
3390
|
+
* @returns {any}
|
|
3391
|
+
*/
|
|
3267
3392
|
formatOnType(params: FormatOnTypeParams): any;
|
|
3268
|
-
/**
|
|
3269
|
-
* @param {FixFileParams} params
|
|
3270
|
-
* @returns {FixFileResult}
|
|
3271
|
-
*/
|
|
3393
|
+
/**
|
|
3394
|
+
* @param {FixFileParams} params
|
|
3395
|
+
* @returns {FixFileResult}
|
|
3396
|
+
*/
|
|
3272
3397
|
fixFile(params: FixFileParams): FixFileResult;
|
|
3273
|
-
/**
|
|
3274
|
-
* @param {OrganizeImportsParams} params
|
|
3275
|
-
* @returns {OrganizeImportsResult}
|
|
3276
|
-
*/
|
|
3398
|
+
/**
|
|
3399
|
+
* @param {OrganizeImportsParams} params
|
|
3400
|
+
* @returns {OrganizeImportsResult}
|
|
3401
|
+
*/
|
|
3277
3402
|
organizeImports(params: OrganizeImportsParams): OrganizeImportsResult;
|
|
3278
|
-
/**
|
|
3279
|
-
* @param {RenameParams} params
|
|
3280
|
-
* @returns {RenameResult}
|
|
3281
|
-
*/
|
|
3403
|
+
/**
|
|
3404
|
+
* @param {RenameParams} params
|
|
3405
|
+
* @returns {RenameResult}
|
|
3406
|
+
*/
|
|
3282
3407
|
rename(params: RenameParams): RenameResult;
|
|
3283
3408
|
}
|