export const Customer = Type.Object({
firstName: Type.String(),
lastName: Type.String(),
age: Type.Number(),
dob: Type.Date(),
address: Type.Object({
streetAddress: Type.String(),
city: Type.String(),
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { performance } from 'perf_hooks' | |
export type Timer = ReturnType<typeof createTimer> | |
/** | |
* High resolution timer. Note that Number.MAX_SAFE_INTEGER | |
* limits the total duration to ~104 hours. | |
*/ | |
export const createTimer = () => { | |
const times: number[] = [] |
OlderNewer