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.
13 lines
329 B
TypeScript
13 lines
329 B
TypeScript
import { Problem, Solution, User } from './model'
|
|
|
|
export type DatabaseConnection = {
|
|
getProblem(id: string): Promise<Problem | null>
|
|
getJumbotronProblem(): Promise<Problem | null>
|
|
}
|
|
|
|
export type Database = {
|
|
users: Record<string, User>
|
|
problems: Record<string, Problem>
|
|
solutions: Record<string, Solution>
|
|
}
|