erik.gh
erik.gh
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
@choco would an api like apply(cb1)(cb2)(cb3) also work?
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
okay let me see
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
of all of the previous callbacks or just the direct predecessor
17 replies
TTCTheo's Typesafe Cult
Created by choco on 2/20/2025 in #questions
Simple typescript function
okay so given the first callback returns a string the next callback's first parameter should be of type string correct? what about the type of the first callback's first parameter?
17 replies
TTCTheo's Typesafe Cult
Created by BurningPho3nix on 1/31/2025 in #questions
Question about DNS
ok could you please provide more information on what the actual problem is. I understand that the ultimate goal is to have your vpn clients use your internal dns but what exactly is not working. You said you were using Wireguard or Tailscale but which one are we talking about in this situation? Is your vpn already working in other situations? Does it expose the whole subnet the dns is part of? Are clients already allowed to and can reach said subnet? Could you share your configs (with sensible information redacted ofc)? If you want me to take a look at your live system you can also dm me.
9 replies
TTCTheo's Typesafe Cult
Created by BurningPho3nix on 1/31/2025 in #questions
Question about DNS
what type of vpn are you using?
9 replies
TTCTheo's Typesafe Cult
Created by BurningPho3nix on 1/31/2025 in #questions
Question about DNS
are you able to ping your dns server from the client
9 replies
TTCTheo's Typesafe Cult
Created by BurningPho3nix on 1/31/2025 in #questions
Question about DNS
@BurningPho3nix given that your vpn server is on the same network and connected clients may reach the dns server just set the dns server of the client to your dns?
9 replies
TTCTheo's Typesafe Cult
Created by Akash Sharma on 12/4/2024 in #questions
Network Issue
do you use a vpn?
4 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
wait is args generic?
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
catch what?
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
i personally would just go with type annotated variables if that works
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
yeah that's what i thought
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
that is my guess
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
but there is no real way around that unless you were to split your object into multiple individually inferable function parameters
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
i think deep inference of generic objects is what causes your issues
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
yes because it's the nested type of your object that causes typescript to narrow too early
62 replies
TTCTheo's Typesafe Cult
Created by Arduano on 6/12/2024 in #questions
Typescript generic field selection assumes type incorrectly
in a way that you tell typescript that rec.a is not actually of type { foo: string } but of type T['a']
62 replies