Skip to content

Commit 79b4e77

Browse files
committed
types: declare manifest types
1 parent c6571cb commit 79b4e77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils/templates.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,12 @@ export const manifestTemplate = (collections: ResolvedCollection[], manifest: Ma
150150
}, {} as Record<string, unknown>)
151151

152152
return [
153-
`export const checksums = ${JSON.stringify(manifest.checksum, null, 2)}`,
153+
`export const checksums: Record<string, string> = ${JSON.stringify(manifest.checksum, null, 2)}`,
154154
'',
155-
`export const tables = ${JSON.stringify(
155+
`export const tables: Record<string, string> = ${JSON.stringify(
156156
Object.fromEntries(collections.map(c => [c.name, c.tableName])),
157+
null,
158+
2,
157159
)}`,
158160
'',
159161
'export default ' + JSON.stringify(collectionsMeta, null, 2),

0 commit comments

Comments
 (0)