josdejong
  • Joined on 2022-10-05
josdejong commented on issue glen/typocomath#5 2023-03-14 09:21:40 +00:00
Inferring TypeScript types

Another status update.

I've been experimenting with two approaches:

  1. Use typescript-rtti, see branch rtti (see the…
josdejong pushed to experiment/typescript_plugin at glen/typocomath 2023-03-14 09:16:04 +00:00
6a063d7385 Add a useful resource to the list with articles
josdejong created branch experiment/typescript_plugin in glen/typocomath 2023-03-14 08:51:40 +00:00
josdejong pushed to experiment/typescript_plugin at glen/typocomath 2023-03-14 08:51:40 +00:00
f8553aa748 Add another experiment infer2 (WIP)
aa044a54e7 Move the experiment into src/plugins and src/experiment
b9cfe706fc Experiment of creating a TypeScript plugin (WIP)
Compare 3 commits »
josdejong commented on issue glen/typocomath#5 2023-02-02 15:21:12 +00:00
Inferring TypeScript types

Short update:

  1. I've solved the issue with the build errors Cannot read properties of undefined (reading 'kind') via 1f2a59c8025260a2ed0e3832243a4089e2827dc1
  2. I've solved the issue with…
josdejong pushed to rtti at glen/typocomath 2023-02-02 15:14:31 +00:00
946b4a495f use CallSite reflection to get some information out of specifications (WIP)
josdejong pushed to rtti at glen/typocomath 2023-02-02 14:52:25 +00:00
86688ca129 fix: generate CommonJS output instead of ESM as a workaround for typescript-rtti issue #94
josdejong pushed to rtti at glen/typocomath 2023-02-02 14:07:54 +00:00
5872bd8537 chore: switch to the typescript and typescript-rtti versions used in the online playground
1f2a59c802 fix some exports not being understood by typescript-rtti
Compare 2 commits »
josdejong commented on issue glen/typocomath#5 2023-01-31 16:33:04 +00:00
Inferring TypeScript types

It could be that the combination of the version of rtti and that of typescript is giving problems. I experimented a bit with different versions of TS but that didn't solve it.

josdejong commented on issue glen/typocomath#5 2023-01-30 09:36:26 +00:00
Inferring TypeScript types

Ah, that's funny, I've never seen an output folder being named /obj 😅. In the JavaScript ecosystem I mostly see them named /build or /dist so I figured it would make sense to name it like…

josdejong commented on issue glen/typocomath#9 2023-01-30 09:32:25 +00:00
Create a build script for typocomath

Yes, so right now in the rtti branch I've added this file /build/package.json, but ideally, not output folder should be committed (it should be safe to delete this folder), so the build script…

josdejong commented on issue glen/typocomath#5 2023-01-25 13:45:34 +00:00
Inferring TypeScript types

Ah I missed that, for some reason my local branch main wasn't connected to the remote main. Fixed now.

I've renamed the folder with output from obj to build, and I've temporarily added…

josdejong created branch rtti in glen/typocomath 2023-01-25 13:42:50 +00:00
josdejong pushed to rtti at glen/typocomath 2023-01-25 13:42:50 +00:00
35a8c62ff2 Set up typescript-rtti (WIP)
josdejong deleted branch rtti from glen/typocomath 2023-01-25 13:38:52 +00:00
josdejong commented on issue glen/typocomath#5 2023-01-24 16:49:44 +00:00
Inferring TypeScript types

@glen I've made a little start today with typescript-rtti in the rtti branch (created from the approach_4.6 branch).

I'm trying to do some stuff in the file src/index.ts, so far with…

josdejong created branch rtti in glen/typocomath 2023-01-24 16:47:02 +00:00
josdejong pushed to rtti at glen/typocomath 2023-01-24 16:47:02 +00:00
39510cbeda set up typescript-rtti (WIP)
josdejong commented on issue glen/typocomath#6 2023-01-17 18:37:04 +00:00
Status of supplying implementations and dependencies

💪 Yes, well summarized. Let's see how that goes.

I'll let you know when I start fiddling with typescript-rtti.

Have fun teaching!

josdejong commented on issue glen/typocomath#6 2023-01-17 10:15:59 +00:00
Status of supplying implementations and dependencies

To avoid a lot of aliases just for this sake, since typescript perfectly well allows default argument values making the arguments optional, perhaps the new dispatcher should embrace them as…