Skip to content

Commit 83d11a1

Browse files
committed
build: update api reports
1 parent f1a5802 commit 83d11a1

File tree

2 files changed

+49
-47
lines changed

2 files changed

+49
-47
lines changed

etc/browser.api.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -556,38 +556,38 @@ export class HtmlValidate {
556556
getRuleDocumentation(ruleId: string, config?: ResolvedConfig | Promise<ResolvedConfig> | null, context?: unknown | null): Promise<RuleDocumentation | null>;
557557
// @deprecated
558558
getRuleDocumentationSync(ruleId: string, config?: ResolvedConfig | null, context?: unknown | null): RuleDocumentation | null;
559-
validateFile(filename: string): Promise<Report>;
560-
validateFileSync(filename: string): Report;
561-
validateMultipleFiles(filenames: string[]): Promise<Report>;
562-
validateMultipleFilesSync(filenames: string[]): Report;
563-
validateSource(input: Source, configOverride?: ConfigData): Promise<Report>;
564-
validateSourceSync(input: Source, configOverride?: ConfigData): Report;
565-
validateString(str: string): Promise<Report>;
559+
validateFile(filename: string): Promise<Report_2>;
560+
validateFileSync(filename: string): Report_2;
561+
validateMultipleFiles(filenames: string[]): Promise<Report_2>;
562+
validateMultipleFilesSync(filenames: string[]): Report_2;
563+
validateSource(input: Source, configOverride?: ConfigData): Promise<Report_2>;
564+
validateSourceSync(input: Source, configOverride?: ConfigData): Report_2;
565+
validateString(str: string): Promise<Report_2>;
566566
// (undocumented)
567-
validateString(str: string, filename: string): Promise<Report>;
567+
validateString(str: string, filename: string): Promise<Report_2>;
568568
// (undocumented)
569-
validateString(str: string, hooks: SourceHooks): Promise<Report>;
569+
validateString(str: string, hooks: SourceHooks): Promise<Report_2>;
570570
// (undocumented)
571-
validateString(str: string, options: ConfigData): Promise<Report>;
571+
validateString(str: string, options: ConfigData): Promise<Report_2>;
572572
// (undocumented)
573-
validateString(str: string, filename: string, hooks: SourceHooks): Promise<Report>;
573+
validateString(str: string, filename: string, hooks: SourceHooks): Promise<Report_2>;
574574
// (undocumented)
575-
validateString(str: string, filename: string, options: ConfigData): Promise<Report>;
575+
validateString(str: string, filename: string, options: ConfigData): Promise<Report_2>;
576576
// (undocumented)
577-
validateString(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Promise<Report>;
578-
validateStringSync(str: string): Report;
577+
validateString(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Promise<Report_2>;
578+
validateStringSync(str: string): Report_2;
579579
// (undocumented)
580-
validateStringSync(str: string, filename: string): Report;
580+
validateStringSync(str: string, filename: string): Report_2;
581581
// (undocumented)
582-
validateStringSync(str: string, hooks: SourceHooks): Report;
582+
validateStringSync(str: string, hooks: SourceHooks): Report_2;
583583
// (undocumented)
584-
validateStringSync(str: string, options: ConfigData): Report;
584+
validateStringSync(str: string, options: ConfigData): Report_2;
585585
// (undocumented)
586-
validateStringSync(str: string, filename: string, hooks: SourceHooks): Report;
586+
validateStringSync(str: string, filename: string, hooks: SourceHooks): Report_2;
587587
// (undocumented)
588-
validateStringSync(str: string, filename: string, options: ConfigData): Report;
588+
validateStringSync(str: string, filename: string, options: ConfigData): Report_2;
589589
// (undocumented)
590-
validateStringSync(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Report;
590+
validateStringSync(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Report_2;
591591
}
592592

593593
// @public (undocumented)
@@ -917,12 +917,13 @@ export interface ProcessElementContext {
917917
export type PropertyExpression = string | [string, any];
918918

919919
// @public
920-
export interface Report {
920+
interface Report_2 {
921921
errorCount: number;
922922
results: Result[];
923923
valid: boolean;
924924
warningCount: number;
925925
}
926+
export { Report_2 as Report }
926927

927928
// @public (undocumented)
928929
export class Reporter {
@@ -933,11 +934,11 @@ export class Reporter {
933934
addManual(filename: string, message: DeferredMessage): void;
934935
// (undocumented)
935936
protected isValid(): boolean;
936-
static merge(reports: Report[]): Report;
937+
static merge(reports: Report_2[]): Report_2;
937938
// (undocumented)
938939
protected result: Record<string, DeferredMessage[]>;
939940
// (undocumented)
940-
save(sources?: Source[]): Report;
941+
save(sources?: Source[]): Report_2;
941942
}
942943

943944
// @public (undocumented)

etc/index.api.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class CLI {
9797
// @internal (undocumented)
9898
getConfig(): ConfigData;
9999
// (undocumented)
100-
getFormatter(formatters: string): (report: Report) => string;
100+
getFormatter(formatters: string): (report: Report_2) => string;
101101
// @internal
102102
getLoader(): ConfigLoader;
103103
getValidator(): HtmlValidate;
@@ -635,38 +635,38 @@ export class HtmlValidate {
635635
getRuleDocumentation(ruleId: string, config?: ResolvedConfig | Promise<ResolvedConfig> | null, context?: unknown | null): Promise<RuleDocumentation | null>;
636636
// @deprecated
637637
getRuleDocumentationSync(ruleId: string, config?: ResolvedConfig | null, context?: unknown | null): RuleDocumentation | null;
638-
validateFile(filename: string): Promise<Report>;
639-
validateFileSync(filename: string): Report;
640-
validateMultipleFiles(filenames: string[]): Promise<Report>;
641-
validateMultipleFilesSync(filenames: string[]): Report;
642-
validateSource(input: Source, configOverride?: ConfigData): Promise<Report>;
643-
validateSourceSync(input: Source, configOverride?: ConfigData): Report;
644-
validateString(str: string): Promise<Report>;
638+
validateFile(filename: string): Promise<Report_2>;
639+
validateFileSync(filename: string): Report_2;
640+
validateMultipleFiles(filenames: string[]): Promise<Report_2>;
641+
validateMultipleFilesSync(filenames: string[]): Report_2;
642+
validateSource(input: Source, configOverride?: ConfigData): Promise<Report_2>;
643+
validateSourceSync(input: Source, configOverride?: ConfigData): Report_2;
644+
validateString(str: string): Promise<Report_2>;
645645
// (undocumented)
646-
validateString(str: string, filename: string): Promise<Report>;
646+
validateString(str: string, filename: string): Promise<Report_2>;
647647
// (undocumented)
648-
validateString(str: string, hooks: SourceHooks): Promise<Report>;
648+
validateString(str: string, hooks: SourceHooks): Promise<Report_2>;
649649
// (undocumented)
650-
validateString(str: string, options: ConfigData): Promise<Report>;
650+
validateString(str: string, options: ConfigData): Promise<Report_2>;
651651
// (undocumented)
652-
validateString(str: string, filename: string, hooks: SourceHooks): Promise<Report>;
652+
validateString(str: string, filename: string, hooks: SourceHooks): Promise<Report_2>;
653653
// (undocumented)
654-
validateString(str: string, filename: string, options: ConfigData): Promise<Report>;
654+
validateString(str: string, filename: string, options: ConfigData): Promise<Report_2>;
655655
// (undocumented)
656-
validateString(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Promise<Report>;
657-
validateStringSync(str: string): Report;
656+
validateString(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Promise<Report_2>;
657+
validateStringSync(str: string): Report_2;
658658
// (undocumented)
659-
validateStringSync(str: string, filename: string): Report;
659+
validateStringSync(str: string, filename: string): Report_2;
660660
// (undocumented)
661-
validateStringSync(str: string, hooks: SourceHooks): Report;
661+
validateStringSync(str: string, hooks: SourceHooks): Report_2;
662662
// (undocumented)
663-
validateStringSync(str: string, options: ConfigData): Report;
663+
validateStringSync(str: string, options: ConfigData): Report_2;
664664
// (undocumented)
665-
validateStringSync(str: string, filename: string, hooks: SourceHooks): Report;
665+
validateStringSync(str: string, filename: string, hooks: SourceHooks): Report_2;
666666
// (undocumented)
667-
validateStringSync(str: string, filename: string, options: ConfigData): Report;
667+
validateStringSync(str: string, filename: string, options: ConfigData): Report_2;
668668
// (undocumented)
669-
validateStringSync(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Report;
669+
validateStringSync(str: string, filename: string, options: ConfigData, hooks: SourceHooks): Report_2;
670670
}
671671

672672
// @public (undocumented)
@@ -1010,12 +1010,13 @@ export interface ProcessElementContext {
10101010
export type PropertyExpression = string | [string, any];
10111011

10121012
// @public
1013-
export interface Report {
1013+
interface Report_2 {
10141014
errorCount: number;
10151015
results: Result[];
10161016
valid: boolean;
10171017
warningCount: number;
10181018
}
1019+
export { Report_2 as Report }
10191020

10201021
// @public (undocumented)
10211022
export class Reporter {
@@ -1026,11 +1027,11 @@ export class Reporter {
10261027
addManual(filename: string, message: DeferredMessage): void;
10271028
// (undocumented)
10281029
protected isValid(): boolean;
1029-
static merge(reports: Report[]): Report;
1030+
static merge(reports: Report_2[]): Report_2;
10301031
// (undocumented)
10311032
protected result: Record<string, DeferredMessage[]>;
10321033
// (undocumented)
1033-
save(sources?: Source[]): Report;
1034+
save(sources?: Source[]): Report_2;
10341035
}
10351036

10361037
// @public (undocumented)

0 commit comments

Comments
 (0)