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 canvas, { CANVAS_H, CANVAS_W } from "./canvas"; | |
| import Engine from "./engine"; | |
| import Button from "./entities/button"; | |
| import TouchSystem from "./systems/touch-system"; | |
| import { Images } from "./types"; | |
| import Client from "./socket-client"; | |
| import Counter from "./entities/counter"; | |
| import CounterSystem from "./systems/counter-system"; | |
| const BASE_URL = window.location.protocol + '//' + window.location.host; |
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
| type SomeRequired<T , TRequired extends keyof T> = T & Required<Pick<T,TRequired>> | |
| //example | |
| type TmpUser = { | |
| photo?: string, | |
| username?: string | |
| } | |
| type User = SomeRequired<TmpUser, 'username'> |
OlderNewer