From 79b4e77493d9548478b9ce7262121e5a7c246ec1 Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Thu, 31 Oct 2024 18:08:15 +0100 Subject: [PATCH] types: declare manifest types --- src/utils/templates.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/templates.ts b/src/utils/templates.ts index 805641219..1f68a6a41 100644 --- a/src/utils/templates.ts +++ b/src/utils/templates.ts @@ -150,10 +150,12 @@ export const manifestTemplate = (collections: ResolvedCollection[], manifest: Ma }, {} as Record) return [ - `export const checksums = ${JSON.stringify(manifest.checksum, null, 2)}`, + `export const checksums: Record = ${JSON.stringify(manifest.checksum, null, 2)}`, '', - `export const tables = ${JSON.stringify( + `export const tables: Record = ${JSON.stringify( Object.fromEntries(collections.map(c => [c.name, c.tableName])), + null, + 2, )}`, '', 'export default ' + JSON.stringify(collectionsMeta, null, 2),