import type { RollTable, RollTableDatabase } from '../common/rolltable'; import { DOMLoaded } from './onload'; class ResponseList { readonly db: RollTableDatabase constructor(db: RollTableDatabase) { this.db = db } } function initResponseList(): ResponseList { throw Error("not yet implemented") } export const responseList: Promise = DOMLoaded.then(() => initResponseList()) export const db: Promise = responseList.then(r => r.db)