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
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
`import type ... from ...`
and all is fine.
`import type ... from ...`
and all is fine.
```
type Job = {} // Main object
namespace Job {} // <-- this is the one that doesn't work
namespace JobMiddleware {}
```
sometimes I hate TS
```
type Job = {} // Main object
namespace Job {} // <-- this is the one that doesn't work
namespace JobMiddleware {}
```
sometimes I hate TS
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
}
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
}