Kenzen Fuyuba 🌨️
banner
kenzen.fuyuba.dev
Kenzen Fuyuba 🌨️
@kenzen.fuyuba.dev
Part-time software developer, full-time vtuber lover. | 🔥 | ⛩🎵 | https://toriiplayer.com
I usually do this on a feature branch, too scared to do it on main
December 3, 2024 at 12:25 AM
You can't tell me you don't get a little choked up:

I know my parents carry the guilt
This wasn't supposed to happen
There isn't a before and after
So tell me what's supposed to happen
A burden to my bones I feel
This wasn't supposed to happen
My body's not a cage I'm trapped in
All in all
December 2, 2024 at 8:50 AM
UPDATE: I changed the imports of the types to explicitly be

`import type ... from ...`

and all is fine.
November 30, 2024 at 3:24 AM
And what makes it worse is this .d.ts file is architected like many others in the project:

```
type Job = {} // Main object

namespace Job {} // <-- this is the one that doesn't work

namespace JobMiddleware {}
```

sometimes I hate TS
November 24, 2024 at 8:52 AM
For some context:

This app uses OAuth, and I add a parameter to the request object with the user data.

Getting types to work with express has been a nightmare.

Meanwhile koa: slap it onto the ctx.state and it just works™

(ctx: ParameterizedContext<OAuthState>) => {
ctx.state.oauth
}
November 16, 2024 at 7:17 AM