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
lifetiltzOP•2y 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•2y ago
glad you found a soultion in the end
lifetiltz
lifetiltzOP•2y 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