JustSomeDev
JustSomeDev
Explore posts from servers
XXata
Created by JustSomeDev on 10/18/2024 in #help
Xata dedicated instance version string
Hey, I am a contractor representing Neon. We recently shipped https://pgversions.com/ and we put the shared instance pg version string as the one there We saw this comment on YC -> https://news.ycombinator.com/item?id=41878149 and we were wondering if someone could send the connection string for a dedicated instance please. Thanks!
6 replies
TTCTheo's Typesafe Cult
Created by JustSomeDev on 5/13/2024 in #questions
TypeScript Compiler API: Recursively resolve type
I am struggling to recursively resolve types with the TypeScript compiler API. Say I have for example an application containing the following type:
import z from "zod";

export const schema = z.boolean();

type MyAwesomeInput = z.infer<typeof schema>;
import z from "zod";

export const schema = z.boolean();

type MyAwesomeInput = z.infer<typeof schema>;
and I load it into a program and get the source file. How do I recursively resolve the type of MyAwesomeInput (I presume s.statements[2].type) to the TS type please? I notice VS Code does this, so I presume it is possible.
2 replies