Closed slackermorris closed 1 year ago
This turned out to be helpful.
I have chosen to follow KCD advice and solution: https://egghead.io/lessons/remix-integrate-typescript-into-a-remix-loader-function.
The ☝️ above article by Francisco didn't seem to work.
I'm currently typing braindumps.list.$braindumpId.tsx
. I am finding it hard to find the type defs for pages
and blocks
for a Notion page.
I am thinking it might be easier just using the typings library that has already been created.
I was having an issue extending the types of a library.
declare module
syntax. It did, however, send me down the wrong path w/r/t typeRoots
..d.ts
namespace..d.ts
namespace:."SOLUTION"
In the end I didn't have to do much. I didn't add a typeRoots
field in my tsconfig. I just created a typings
directory and added a .d.ts
file of the same name of the library that I wanted to extend.
See KCD's talk on PodRocket.