setTimeout with T3 stack not working. Sorry for not got GUD

I am new to TS and i cant get setTimeout to work. It says Argument of type '() => void' is not assignable to parameter of type 'number'.ts(2345) I have googled and tred a lot of other code. I have seahed the t3 doc's. I feel really dumb for not being able to solve this. Super thank you if you offer any help 🙂 Have a great day guys!
3 Replies
lifetiltz
lifetiltz•15mo ago
window.setTimeout(() => {
generateHex();
console.log("WTTFF IS THIS SHJIT?");

}, 1000);
window.setTimeout(() => {
generateHex();
console.log("WTTFF IS THIS SHJIT?");

}, 1000);
so this fixed it pardon the profanity lol Im quite depressed now, despite finding the answer myself. Ill try and read the why, then go lie down.
Sturlen
Sturlen•15mo ago
glad you found a soultion in the end
lifetiltz
lifetiltz•15mo ago
thanks buddy 🙂 also for anyone else seaching for set timeout not working in ts T3, setting it to
global.setTimeout(...
global.setTimeout(...
also works
Want results from more Discord servers?
Add your server