12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
import { DatabaseConnection } from './database'
|
|
|
|
export type ServerAsyncCallback = () => Promise<void>
|
|
|
|
export type RenderedPage = {
|
|
html: string
|
|
metadata: any
|
|
asyncCallbacks: ServerAsyncCallback[]
|
|
}
|
|
|
|
export type RenderFunction = (url: string, db: DatabaseConnection) => RenderedPage
|