Skip to content

Commit fb8575f

Browse files
committed
feat(config-files): support sync data flow for backward compat
1 parent b85edcf commit fb8575f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Exception } from '@angularity/core';
22

33
export interface ConfigFileParser {
4-
parse(raw: string): Promise<object>;
4+
parse(raw: string): object | Promise<object>;
55
}
66

77
export class ConfigFileParsingException extends Exception {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Exception } from '@angularity/core';
22

33
export interface ConfigFileValidator<Schema> {
4-
validate(schema: Schema, parsed: object): Promise<void>;
4+
validate(schema: Schema, parsed: object): void | Promise<void>;
55
}
66

77
export class ConfigFileValidationException extends Exception {}

0 commit comments

Comments
 (0)