export async function dumpSchemas()

in src/schemas.ts [175:190]


export async function dumpSchemas<T extends ObjectMap>(
	schemas: T,
	resourceMap: ResourceMap,
	outputPath: string,
) {
	/* Refactor to allow a test that doesn't write to disk */
	const pathsAndSchemas: StringArray = dumpSchemasToString(
		schemas,
		resourceMap,
		outputPath,
	);

	for (const [path1, schema] of Object.entries(pathsAndSchemas)) {
		await writeFile(path1, schema);
	}
}