Correção do erro no uso do tipo Number/number em typescript

pull/21/head
adriano 2023-02-13 20:34:09 -03:00
parent 221caefa20
commit cdc1eac8ef
1 changed files with 8 additions and 8 deletions

View File

@ -2,15 +2,15 @@
class WhatsQueueIndex { class WhatsQueueIndex {
static staticIndex:Number = 0; static staticIndex: number = 0;
static setIndex(index:Number){ static setIndex(index: number) {
this.staticIndex = index this.staticIndex = index
} }
static getIndex(){ static getIndex() {
return this.staticIndex return this.staticIndex
} }
} }
export default WhatsQueueIndex; export default WhatsQueueIndex;