2
0

👷 Transpile components for better DX

This commit is contained in:
Baptiste Arnaud
2022-09-18 09:46:42 +02:00
committed by Baptiste Arnaud
parent 898367a33b
commit c1dd4d403e
147 changed files with 343 additions and 485 deletions

12
packages/models/answer.ts Normal file
View File

@ -0,0 +1,12 @@
import { Answer as AnswerFromPrisma } from 'db'
export type Answer = Omit<
AnswerFromPrisma,
'resultId' | 'createdAt' | 'storageUsed'
> & { storageUsed?: number }
export type Stats = {
totalViews: number
totalStarts: number
totalCompleted: number
}