Mango Juicy
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Mango Juicy on 10/29/2024 in #questions
Recommended abstract syntax tree for JavaScript/TypeScript
I mentioned JavaScript AST was too limiting. Eslint uses Espree AST, which is based off Acorn AST.
The main goal is to extract Nodejs types for detection.
JavaScript ASTs don't appear to provide type info, so you may have to write some crazy ass algorithm to detect types.
Found a possible answer from Solidjs channel:
Use typescript-eslint plugin to extract types.
4 replies
TTCTheo's Typesafe Cult
•Created by Mango Juicy on 7/12/2024 in #questions
NPM library best practices?
Alright, I don't think I know what I'm doing. But unbuild definitely sounds like a good solution created by someone who is heavily involved in open source. So I'll just use the most basic config.
Debugging might be more difficult for consumers.
11 replies
TTCTheo's Typesafe Cult
•Created by Mango Juicy on 7/12/2024 in #questions
NPM library best practices?
Ah yes, I saw that: unbuild. Tried it briefly before.
Docs aren't great though, but easy to use. Compiles to a .js + d.ts file.
Not easy to debug? - like how do you map from an error in that one file to the original source code?
If I could figure out how to preserve folder structure, I would definitely consider. Or if there are alternative debugging methods.
11 replies
TTCTheo's Typesafe Cult
•Created by Mango Juicy on 7/12/2024 in #questions
NPM library best practices?
Interesting idea with only ESM support. Sounds like JSR bundles TypeScript to ESM and d.ts for you. Then users download your package from @jsr/PackageName.
Cross runtime support is an interesting feature. Are they adding polyfills/ponyfills?
However, I don't see this working well with WASM based libraries generated from Emscripten, which is usually in CommonJS without TypeScript.
11 replies
TTCTheo's Typesafe Cult
•Created by Beardeddragon on 5/21/2024 in #questions
IndexedDB sharding library feedback
Very confused as to why we need sharding for indexeddb
10 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 5/6/2024 in #questions
Dockerizing t3 app with mysql database
The error originates from the "kwirk-app" docker container.
I don't see node_modules being copied to "runner" stage, so maybe this is the root issue?
3 replies
TTCTheo's Typesafe Cult
•Created by PixelPioneer on 5/4/2024 in #questions
Docker help -> writing to file in a seperate container
What is the ultimate goal?
What do you solve by separating into 2 docker containers and editing one from another?
3 replies
TTCTheo's Typesafe Cult
•Created by Aguilar on 5/5/2024 in #questions
favicon not showing on google search
Maybe the icons size isn't right?
"must be a multiple of 48px square"
12 replies