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