Lazurith
Lazurith
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
Or just make 3 arguments, one for the context, one for the first cb and spread for the rest cps
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
Like [cb_type_0, ...cb_type_rest] and see if this works
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
Use extended types of make an array type of fisrt empty element then a spread of filled types
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
Ah okay, one possible solution is to create a type for this function and spread it, furthermore I don't really know how to help. If you give like stepped approach on what you want to J can help
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
Hi You can read about partial applications or monads from here, I think these solvrr your problem https://github.com/RealKareemAnees/GoFunctionalProgramming?tab=readme-ov-file#partial-application The code us written in Go but it is very easy to understand and you can use gpt to translate it
17 replies