workspace-conformance 1.7.0 → 2.0.1

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/dist/index.d.cts CHANGED
@@ -2,6 +2,14 @@ import { ConfigFileOptions, LayoutConfig, RankSkipOptions, Section } from "@exad
2
2
  import { IViolation } from "dependency-cruiser";
3
3
  import { z } from "zod";
4
4
  import { CompilerOptions } from "ts-morph";
5
+ //#region src/errors.d.ts
6
+ /**
7
+ * A problem with how the tool was used or configured rather than a finding about the workspace: an unknown or disabled check, a missing or invalid section, a layout that cannot be resolved, a repository that is not a git checkout. The command line reports it and exits 2.
8
+ */
9
+ export declare class ConformanceError extends Error {
10
+ constructor(message: string, options?: ErrorOptions);
11
+ }
12
+ //#endregion
5
13
  //#region src/github.d.ts
6
14
  /**
7
15
  * A repository on GitHub.
@@ -39,7 +47,13 @@ interface BranchRules {
39
47
  }[];
40
48
  }
41
49
  /**
42
- * What the settings checks need from GitHub, so a test or another host can supply it without a network. The real implementation is {@link createGitHubClient}. Both methods reject when the repository or branch cannot be read.
50
+ * GitHub's refusal to read a branch's rules because the repository's plan does not offer rulesets, as for a private repository on a plan without them: no ruleset applies to its branches, so a check that requires one cannot be met. The message is GitHub's own. A {@link GitHubClient} rejects `branchRules` with it, and with any other error for every other refusal.
51
+ */
52
+ export declare class RulesetsUnavailableError extends ConformanceError {
53
+ constructor(message: string, options?: ErrorOptions);
54
+ }
55
+ /**
56
+ * What the settings checks need from GitHub, so a test or another host can supply it without a network. The real implementation is {@link createGitHubClient}. Both methods reject when the repository or branch cannot be read, `branchRules` with {@link RulesetsUnavailableError} when the repository's plan has no rulesets.
43
57
  */
44
58
  interface GitHubClient {
45
59
  readonly repository: (slug: RepositorySlug) => Promise<RepositorySettings>;
@@ -95,14 +109,18 @@ interface Violation {
95
109
  */
96
110
  interface CheckContext<Options> {
97
111
  /**
98
- * The directory the checks run in; every path option is relative to it.
112
+ * The directory the checks run in, absolute or relative to the working directory of the process; every path option is relative to it.
99
113
  */
100
114
  readonly cwd: string;
101
115
  readonly options: Options;
102
116
  /**
103
- * How config files that a check evaluates itself (the commitlint and release configs of `commit-types`) are loaded. Only `alias` and `fsCache` apply to evaluating a file; `trust` and `merge` are for `extends`. No transpile cache is written when omitted.
117
+ * How config files that a check evaluates itself (the commitlint and release configs of `commit-types`) are loaded. Only `alias` and `fsCache` apply to evaluating a file; `trust` and the per-shape `unified` and `standalone` layer options are for `extends`. No transpile cache is written when omitted.
104
118
  */
105
119
  readonly configFiles?: ConfigFileOptions;
120
+ /**
121
+ * Receives what the check reports beside its violations: a line about what it did, such as how many files it linted, so a clean result can be told apart from one that looked at little. Nothing is reported when omitted.
122
+ */
123
+ readonly note?: (text: string) => void;
106
124
  }
107
125
  /**
108
126
  * What a check that reads the workspace layout receives.
@@ -910,7 +928,7 @@ export declare const eslint: CheckFunction<EslintOptions>;
910
928
  */
911
929
  interface DiscoveredPackage {
912
930
  /**
913
- * Relative to the workspace root, with `/` separators.
931
+ * Relative to the workspace root, with `/` separators; {@link ROOT_PACKAGE_DIR} for the package at the root.
914
932
  */
915
933
  readonly dir: string;
916
934
  /**
@@ -938,7 +956,7 @@ interface WorkspacePackage extends DiscoveredPackage {
938
956
  /**
939
957
  * Classify discovered packages by the layout: group, rank and slice. Pure.
940
958
  *
941
- * A package no group owns is a configuration error, because every check would otherwise skip it without saying so. Nested package directories are one too: the checks attribute a file to the package whose directory is its prefix, which is ambiguous for a package inside another. A `namePrefix` slice takes the longest slice value that a `segment` group produced and that prefixes the package's unscoped name; a package without a name has no such slice.
959
+ * A package no group owns is a configuration error, because every check would otherwise skip it without saying so. Nested package directories are one too: the checks attribute a file to the package whose directory is its prefix, which is ambiguous for a package inside another. The root package holds every other directory, so it is a package only in a single-package repository. A `namePrefix` slice takes the longest slice value that a `segment` group produced and that prefixes the package's unscoped name; a package without a name has no such slice.
942
960
  */
943
961
  export declare function classifyPackages(discovered: readonly DiscoveredPackage[], layout: LayoutConfig): readonly WorkspacePackage[];
944
962
  //#endregion
@@ -960,7 +978,7 @@ interface ImportRule {
960
978
  };
961
979
  }
962
980
  /**
963
- * A regular expression, as source text, matching every file inside any of the packages. The trailing `/` keeps `packages/a` from matching `packages/ab`.
981
+ * A regular expression, as source text, matching every file inside any of the packages: the path starts with one's {@link packagePathPrefix}.
964
982
  */
965
983
  export declare function packagesPattern(packages: readonly WorkspacePackage[]): string;
966
984
  /**
@@ -1048,7 +1066,7 @@ export declare const importUphill: LayoutCheckFunction<ImportGraphOptions>;
1048
1066
  //#endregion
1049
1067
  //#region src/checks/instruction-symlinks.d.ts
1050
1068
  /**
1051
- * Each agent instruction file is tracked by git as a symbolic link (mode 120000) whose target is the README beside it, so the two cannot diverge. The link may be written in any form that resolves there (`./README.md`), and may lead through other tracked links, as in `CLAUDE.md` to `AGENTS.md` to `README.md`. It reads the index, not the working tree, so a checkout with `core.symlinks` false, where a link is written out as a plain file, is judged by what is committed.
1069
+ * Each agent instruction file is tracked by git as a symbolic link (mode 120000) whose target is the README beside it, so the two cannot diverge. A directory without a tracked README has nothing to link to, so a missing instruction file there is not reported; one that exists is still judged. The link may be written in any form that resolves there (`./README.md`), and may lead through other tracked links, as in `CLAUDE.md` to `AGENTS.md` to `README.md`. It reads the index, not the working tree, so a checkout with `core.symlinks` false, where a link is written out as a plain file, is judged by what is committed.
1052
1070
  */
1053
1071
  export declare const instructionSymlinks: CheckFunction<InstructionSymlinksOptions>;
1054
1072
  //#endregion
@@ -1064,6 +1082,8 @@ export declare const migrationsDirectory: CheckFunction<MigrationsDirectoryOptio
1064
1082
  /**
1065
1083
  * Only one merge method is available for a pull request into the branch, `rebase` unless the options say otherwise. A method is available when the repository allows it and no `pull_request` rule that applies to the branch leaves it out of its allowed methods.
1066
1084
  *
1085
+ * When the repository's plan has no rulesets, no rule applies to the branch and the repository settings alone decide.
1086
+ *
1067
1087
  * Limits: it reads the repository settings and the rules of rulesets that apply to the branch; classic branch protection and a merge queue's own merge method are not read, so a repository whose queue owns the strategy is judged by what it still allows for a direct merge.
1068
1088
  */
1069
1089
  export declare const settingsMergeMethods: GitHubCheckFunction<SettingsMergeMethodsOptions>;
@@ -1072,7 +1092,7 @@ export declare const settingsMergeMethods: GitHubCheckFunction<SettingsMergeMeth
1072
1092
  /**
1073
1093
  * The branch requires the check of every junction job of the workflows, and requires branches to be up to date before merging (strict mode). The check name of a job is its `name`, else its id.
1074
1094
  *
1075
- * The junction job is the one that reports for the whole workflow, so requiring it requires everything it needs, including jobs a path filter may skip. Codes: `no-required-checks` (no `required_status_checks` rule applies), `required-check-missing` (a junction job's check is not among the required ones), `not-strict` (no rule sets the strict policy) and `no-junction-job` (no workflow has a job with an id from `junctionJobs`).
1095
+ * The junction job is the one that reports for the whole workflow, so requiring it requires everything it needs, including jobs a path filter may skip. Codes: `no-required-checks` (no `required_status_checks` rule applies), `required-check-missing` (a junction job's check is not among the required ones), `not-strict` (no rule sets the strict policy), `no-junction-job` (no workflow has a job with an id from `junctionJobs`) and `rules-unavailable` (the repository's plan has no rulesets, so no check can be required; reported alone, with GitHub's message).
1076
1096
  *
1077
1097
  * Limits: it reads the rules of rulesets that apply to the branch; classic branch protection is not read, so a repository that uses it is reported as having no required checks. A junction job in a reusable workflow, or a name that is an expression, is not resolved.
1078
1098
  */
@@ -1082,6 +1102,8 @@ export declare const settingsRequiredChecks: GitHubCheckFunction<SettingsRequire
1082
1102
  /**
1083
1103
  * A pull request cannot merge while a review conversation is unresolved: a `pull_request` rule that applies to the branch sets `required_review_thread_resolution`.
1084
1104
  *
1105
+ * When the repository's plan has no rulesets it reports `rules-unavailable` with GitHub's message, since nothing can require it.
1106
+ *
1085
1107
  * Limits: it reads the rules of rulesets; classic branch protection is not read.
1086
1108
  */
1087
1109
  export declare const settingsReviewThreadResolution: GitHubCheckFunction<SettingsReviewThreadResolutionOptions>;
@@ -1202,14 +1224,6 @@ export declare const conformanceSchema: z.ZodType<ConformanceConfig, Conformance
1202
1224
  */
1203
1225
  export declare const conformanceSection: Section<"conformance", z.ZodType<ConformanceConfig, ConformanceConfig>>;
1204
1226
  //#endregion
1205
- //#region src/errors.d.ts
1206
- /**
1207
- * A problem with how the tool was used or configured rather than a finding about the workspace: an unknown or disabled check, a missing or invalid section, a layout that cannot be resolved, a repository that is not a git checkout. The command line reports it and exits 2.
1208
- */
1209
- export declare class ConformanceError extends Error {
1210
- constructor(message: string, options?: ErrorOptions);
1211
- }
1212
- //#endregion
1213
1227
  //#region src/registry.d.ts
1214
1228
  /**
1215
1229
  * What a check needs to run once the configuration is loaded.
@@ -1223,6 +1237,10 @@ interface RunInput {
1223
1237
  * The client the settings checks read through; `undefined` when the run is offline.
1224
1238
  */
1225
1239
  readonly github: GitHubClient | undefined;
1240
+ /**
1241
+ * Receives the check's notes, what it reports beside its violations.
1242
+ */
1243
+ readonly note: (text: string) => void;
1226
1244
  }
1227
1245
  /**
1228
1246
  * What every registered check has, whichever way it runs.
@@ -1289,7 +1307,7 @@ export declare const EXIT_CODES: {
1289
1307
  */
1290
1308
  interface RunChecksOptions {
1291
1309
  /**
1292
- * The directory that holds the config files and that every path option is relative to.
1310
+ * The directory that holds the config files and that every path option is relative to. A relative path is resolved against the working directory of the process, once, before any check runs.
1293
1311
  */
1294
1312
  readonly cwd: string;
1295
1313
  /**
@@ -1319,6 +1337,10 @@ interface RunChecksOptions {
1319
1337
  interface CheckResult {
1320
1338
  readonly check: CheckName;
1321
1339
  readonly violations: readonly Violation[];
1340
+ /**
1341
+ * What the check reported beside its violations, such as how many files it linted, in the order it reported them.
1342
+ */
1343
+ readonly notes: readonly string[];
1322
1344
  }
1323
1345
  /**
1324
1346
  * The outcome of running checks.
@@ -1342,7 +1364,7 @@ interface RunResult {
1342
1364
  *
1343
1365
  * Violations do not throw. It throws `ConformanceError` when the checks cannot run (nothing enabled, a requested check disabled, a section missing) and `ConfigValidationError` when a section fails its schema, whether it was loaded from `cwd` or passed in.
1344
1366
  */
1345
- export declare function runChecks(options: RunChecksOptions): Promise<RunResult>;
1367
+ export declare function runChecks(given: RunChecksOptions): Promise<RunResult>;
1346
1368
  //#endregion
1347
1369
  //#region src/type-level.d.ts
1348
1370
  /**
package/dist/index.d.ts CHANGED
@@ -1,7 +1,15 @@
1
1
  import { CompilerOptions } from "ts-morph";
2
- import { ConfigFileOptions, LayoutConfig, RankSkipOptions, Section } from "@exadev/config";
3
2
  import { z } from "zod";
3
+ import { ConfigFileOptions, LayoutConfig, RankSkipOptions, Section } from "@exadev/config";
4
4
  import { IViolation } from "dependency-cruiser";
5
+ //#region src/errors.d.ts
6
+ /**
7
+ * A problem with how the tool was used or configured rather than a finding about the workspace: an unknown or disabled check, a missing or invalid section, a layout that cannot be resolved, a repository that is not a git checkout. The command line reports it and exits 2.
8
+ */
9
+ export declare class ConformanceError extends Error {
10
+ constructor(message: string, options?: ErrorOptions);
11
+ }
12
+ //#endregion
5
13
  //#region src/github.d.ts
6
14
  /**
7
15
  * A repository on GitHub.
@@ -39,7 +47,13 @@ interface BranchRules {
39
47
  }[];
40
48
  }
41
49
  /**
42
- * What the settings checks need from GitHub, so a test or another host can supply it without a network. The real implementation is {@link createGitHubClient}. Both methods reject when the repository or branch cannot be read.
50
+ * GitHub's refusal to read a branch's rules because the repository's plan does not offer rulesets, as for a private repository on a plan without them: no ruleset applies to its branches, so a check that requires one cannot be met. The message is GitHub's own. A {@link GitHubClient} rejects `branchRules` with it, and with any other error for every other refusal.
51
+ */
52
+ export declare class RulesetsUnavailableError extends ConformanceError {
53
+ constructor(message: string, options?: ErrorOptions);
54
+ }
55
+ /**
56
+ * What the settings checks need from GitHub, so a test or another host can supply it without a network. The real implementation is {@link createGitHubClient}. Both methods reject when the repository or branch cannot be read, `branchRules` with {@link RulesetsUnavailableError} when the repository's plan has no rulesets.
43
57
  */
44
58
  interface GitHubClient {
45
59
  readonly repository: (slug: RepositorySlug) => Promise<RepositorySettings>;
@@ -95,14 +109,18 @@ interface Violation {
95
109
  */
96
110
  interface CheckContext<Options> {
97
111
  /**
98
- * The directory the checks run in; every path option is relative to it.
112
+ * The directory the checks run in, absolute or relative to the working directory of the process; every path option is relative to it.
99
113
  */
100
114
  readonly cwd: string;
101
115
  readonly options: Options;
102
116
  /**
103
- * How config files that a check evaluates itself (the commitlint and release configs of `commit-types`) are loaded. Only `alias` and `fsCache` apply to evaluating a file; `trust` and `merge` are for `extends`. No transpile cache is written when omitted.
117
+ * How config files that a check evaluates itself (the commitlint and release configs of `commit-types`) are loaded. Only `alias` and `fsCache` apply to evaluating a file; `trust` and the per-shape `unified` and `standalone` layer options are for `extends`. No transpile cache is written when omitted.
104
118
  */
105
119
  readonly configFiles?: ConfigFileOptions;
120
+ /**
121
+ * Receives what the check reports beside its violations: a line about what it did, such as how many files it linted, so a clean result can be told apart from one that looked at little. Nothing is reported when omitted.
122
+ */
123
+ readonly note?: (text: string) => void;
106
124
  }
107
125
  /**
108
126
  * What a check that reads the workspace layout receives.
@@ -910,7 +928,7 @@ export declare const eslint: CheckFunction<EslintOptions>;
910
928
  */
911
929
  interface DiscoveredPackage {
912
930
  /**
913
- * Relative to the workspace root, with `/` separators.
931
+ * Relative to the workspace root, with `/` separators; {@link ROOT_PACKAGE_DIR} for the package at the root.
914
932
  */
915
933
  readonly dir: string;
916
934
  /**
@@ -938,7 +956,7 @@ interface WorkspacePackage extends DiscoveredPackage {
938
956
  /**
939
957
  * Classify discovered packages by the layout: group, rank and slice. Pure.
940
958
  *
941
- * A package no group owns is a configuration error, because every check would otherwise skip it without saying so. Nested package directories are one too: the checks attribute a file to the package whose directory is its prefix, which is ambiguous for a package inside another. A `namePrefix` slice takes the longest slice value that a `segment` group produced and that prefixes the package's unscoped name; a package without a name has no such slice.
959
+ * A package no group owns is a configuration error, because every check would otherwise skip it without saying so. Nested package directories are one too: the checks attribute a file to the package whose directory is its prefix, which is ambiguous for a package inside another. The root package holds every other directory, so it is a package only in a single-package repository. A `namePrefix` slice takes the longest slice value that a `segment` group produced and that prefixes the package's unscoped name; a package without a name has no such slice.
942
960
  */
943
961
  export declare function classifyPackages(discovered: readonly DiscoveredPackage[], layout: LayoutConfig): readonly WorkspacePackage[];
944
962
  //#endregion
@@ -960,7 +978,7 @@ interface ImportRule {
960
978
  };
961
979
  }
962
980
  /**
963
- * A regular expression, as source text, matching every file inside any of the packages. The trailing `/` keeps `packages/a` from matching `packages/ab`.
981
+ * A regular expression, as source text, matching every file inside any of the packages: the path starts with one's {@link packagePathPrefix}.
964
982
  */
965
983
  export declare function packagesPattern(packages: readonly WorkspacePackage[]): string;
966
984
  /**
@@ -1048,7 +1066,7 @@ export declare const importUphill: LayoutCheckFunction<ImportGraphOptions>;
1048
1066
  //#endregion
1049
1067
  //#region src/checks/instruction-symlinks.d.ts
1050
1068
  /**
1051
- * Each agent instruction file is tracked by git as a symbolic link (mode 120000) whose target is the README beside it, so the two cannot diverge. The link may be written in any form that resolves there (`./README.md`), and may lead through other tracked links, as in `CLAUDE.md` to `AGENTS.md` to `README.md`. It reads the index, not the working tree, so a checkout with `core.symlinks` false, where a link is written out as a plain file, is judged by what is committed.
1069
+ * Each agent instruction file is tracked by git as a symbolic link (mode 120000) whose target is the README beside it, so the two cannot diverge. A directory without a tracked README has nothing to link to, so a missing instruction file there is not reported; one that exists is still judged. The link may be written in any form that resolves there (`./README.md`), and may lead through other tracked links, as in `CLAUDE.md` to `AGENTS.md` to `README.md`. It reads the index, not the working tree, so a checkout with `core.symlinks` false, where a link is written out as a plain file, is judged by what is committed.
1052
1070
  */
1053
1071
  export declare const instructionSymlinks: CheckFunction<InstructionSymlinksOptions>;
1054
1072
  //#endregion
@@ -1064,6 +1082,8 @@ export declare const migrationsDirectory: CheckFunction<MigrationsDirectoryOptio
1064
1082
  /**
1065
1083
  * Only one merge method is available for a pull request into the branch, `rebase` unless the options say otherwise. A method is available when the repository allows it and no `pull_request` rule that applies to the branch leaves it out of its allowed methods.
1066
1084
  *
1085
+ * When the repository's plan has no rulesets, no rule applies to the branch and the repository settings alone decide.
1086
+ *
1067
1087
  * Limits: it reads the repository settings and the rules of rulesets that apply to the branch; classic branch protection and a merge queue's own merge method are not read, so a repository whose queue owns the strategy is judged by what it still allows for a direct merge.
1068
1088
  */
1069
1089
  export declare const settingsMergeMethods: GitHubCheckFunction<SettingsMergeMethodsOptions>;
@@ -1072,7 +1092,7 @@ export declare const settingsMergeMethods: GitHubCheckFunction<SettingsMergeMeth
1072
1092
  /**
1073
1093
  * The branch requires the check of every junction job of the workflows, and requires branches to be up to date before merging (strict mode). The check name of a job is its `name`, else its id.
1074
1094
  *
1075
- * The junction job is the one that reports for the whole workflow, so requiring it requires everything it needs, including jobs a path filter may skip. Codes: `no-required-checks` (no `required_status_checks` rule applies), `required-check-missing` (a junction job's check is not among the required ones), `not-strict` (no rule sets the strict policy) and `no-junction-job` (no workflow has a job with an id from `junctionJobs`).
1095
+ * The junction job is the one that reports for the whole workflow, so requiring it requires everything it needs, including jobs a path filter may skip. Codes: `no-required-checks` (no `required_status_checks` rule applies), `required-check-missing` (a junction job's check is not among the required ones), `not-strict` (no rule sets the strict policy), `no-junction-job` (no workflow has a job with an id from `junctionJobs`) and `rules-unavailable` (the repository's plan has no rulesets, so no check can be required; reported alone, with GitHub's message).
1076
1096
  *
1077
1097
  * Limits: it reads the rules of rulesets that apply to the branch; classic branch protection is not read, so a repository that uses it is reported as having no required checks. A junction job in a reusable workflow, or a name that is an expression, is not resolved.
1078
1098
  */
@@ -1082,6 +1102,8 @@ export declare const settingsRequiredChecks: GitHubCheckFunction<SettingsRequire
1082
1102
  /**
1083
1103
  * A pull request cannot merge while a review conversation is unresolved: a `pull_request` rule that applies to the branch sets `required_review_thread_resolution`.
1084
1104
  *
1105
+ * When the repository's plan has no rulesets it reports `rules-unavailable` with GitHub's message, since nothing can require it.
1106
+ *
1085
1107
  * Limits: it reads the rules of rulesets; classic branch protection is not read.
1086
1108
  */
1087
1109
  export declare const settingsReviewThreadResolution: GitHubCheckFunction<SettingsReviewThreadResolutionOptions>;
@@ -1202,14 +1224,6 @@ export declare const conformanceSchema: z.ZodType<ConformanceConfig, Conformance
1202
1224
  */
1203
1225
  export declare const conformanceSection: Section<"conformance", z.ZodType<ConformanceConfig, ConformanceConfig>>;
1204
1226
  //#endregion
1205
- //#region src/errors.d.ts
1206
- /**
1207
- * A problem with how the tool was used or configured rather than a finding about the workspace: an unknown or disabled check, a missing or invalid section, a layout that cannot be resolved, a repository that is not a git checkout. The command line reports it and exits 2.
1208
- */
1209
- export declare class ConformanceError extends Error {
1210
- constructor(message: string, options?: ErrorOptions);
1211
- }
1212
- //#endregion
1213
1227
  //#region src/registry.d.ts
1214
1228
  /**
1215
1229
  * What a check needs to run once the configuration is loaded.
@@ -1223,6 +1237,10 @@ interface RunInput {
1223
1237
  * The client the settings checks read through; `undefined` when the run is offline.
1224
1238
  */
1225
1239
  readonly github: GitHubClient | undefined;
1240
+ /**
1241
+ * Receives the check's notes, what it reports beside its violations.
1242
+ */
1243
+ readonly note: (text: string) => void;
1226
1244
  }
1227
1245
  /**
1228
1246
  * What every registered check has, whichever way it runs.
@@ -1289,7 +1307,7 @@ export declare const EXIT_CODES: {
1289
1307
  */
1290
1308
  interface RunChecksOptions {
1291
1309
  /**
1292
- * The directory that holds the config files and that every path option is relative to.
1310
+ * The directory that holds the config files and that every path option is relative to. A relative path is resolved against the working directory of the process, once, before any check runs.
1293
1311
  */
1294
1312
  readonly cwd: string;
1295
1313
  /**
@@ -1319,6 +1337,10 @@ interface RunChecksOptions {
1319
1337
  interface CheckResult {
1320
1338
  readonly check: CheckName;
1321
1339
  readonly violations: readonly Violation[];
1340
+ /**
1341
+ * What the check reported beside its violations, such as how many files it linted, in the order it reported them.
1342
+ */
1343
+ readonly notes: readonly string[];
1322
1344
  }
1323
1345
  /**
1324
1346
  * The outcome of running checks.
@@ -1342,7 +1364,7 @@ interface RunResult {
1342
1364
  *
1343
1365
  * Violations do not throw. It throws `ConformanceError` when the checks cannot run (nothing enabled, a requested check disabled, a section missing) and `ConfigValidationError` when a section fails its schema, whether it was loaded from `cwd` or passed in.
1344
1366
  */
1345
- export declare function runChecks(options: RunChecksOptions): Promise<RunResult>;
1367
+ export declare function runChecks(given: RunChecksOptions): Promise<RunResult>;
1346
1368
  //#endregion
1347
1369
  //#region src/type-level.d.ts
1348
1370
  /**