Block registry api
This commit is contained in:
@@ -81,9 +81,9 @@ function processing(json: Json, context: Context): Converted {
|
||||
};
|
||||
}
|
||||
|
||||
export function import_recipes(input: string, options: ImportOptions = {}): ImportReport {
|
||||
export async function import_recipes(input: string, options: ImportOptions = {}): Promise<ImportReport> {
|
||||
if (options.output === undefined) throw new Error("--output is needed for recipes");
|
||||
const context = { remaps: options.remaps ?? DEFAULT_REMAPS, known: known_in(options.output) };
|
||||
const context = { remaps: options.remaps ?? DEFAULT_REMAPS, known: await known_in(options.output) };
|
||||
const report = empty_report();
|
||||
if (context.known === undefined) {
|
||||
report.warnings.push({
|
||||
|
||||
Reference in New Issue
Block a user