- starting project list...
- ordering some functions
- fix error TS2339
quasar.extensions.json was the problem !
inside had:
{
"@quasar/typescript": {
"webpack": "plugin",
"rename": true
}
}
This commit is contained in:
10
src/utils/methods.ts
Normal file
10
src/utils/methods.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
export function timeout(duration: number): Promise<{}> {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {resolve()}, duration);
|
||||
})
|
||||
}
|
||||
|
||||
export function randomNumber(min: number, max: number) : number {
|
||||
return Math.floor((Math.random() * max) + min);
|
||||
}
|
||||
Reference in New Issue
Block a user