You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|