Skip to content

Commit fb2d03e

Browse files
committed
correct config.interface -> validate to async
1 parent 7053070 commit fb2d03e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/unraid-api/config/config.interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export interface ConfigMetadata<T = unknown> {
1010
token: string;
1111
/** The path to the config file. */
1212
filePath?: string;
13-
/** Synchronously validates a config of type `T`. */
14-
validate: (config: unknown) => T | void;
13+
/** Validates a config of type `T`. */
14+
validate: (config: unknown) => Promise<T>;
1515
}

0 commit comments

Comments
 (0)