Deno, again
See original GitHub issueI would love to use fp-ts with Deno, but there is an issue with HKT encoding. I have tried to naively port fp-ts to Deno with this script:
for (const dirEntry of Deno.readDirSync("./src")) {
if (!dirEntry.isFile) continue;
const filePath = `./src/${dirEntry.name}`;
const src = Deno.readTextFileSync(filePath);
const denoSrc = src.replaceAll(
/\"\.\/([a-zA-Z0-9]+)\"/g,
(_match, capture) => `"./${capture}.ts"`
);
Deno.writeTextFileSync(filePath, denoSrc);
}
But there are errors: Type '"Eq"' does not satisfy the constraint 'keyof URItoKind<any>'.
Any idea?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
First Steps | Manual - Deno
This illustrates a general design goal for I/O streams in Deno. Again, here, we need to give --allow-read access to the program. Try...
Read more >Big changes ahead for Deno | Hacker News
Deno's progress on NPM compatibility may have accelerated due to how BunJS was received, ... Once Deno ships these features I'll try Deno...
Read more >The ultimate beginner's guide to Deno | The JS runtimes
The audience of this Deno 101 guide are people who are curious ... PermissionDenied: Requires net access to "deno.land", run again with the ......
Read more >Error installing Deno using `iwr` (again?) · Issue #202 - GitHub
Error installing Deno using iwr (again?) #202. Closed. saschanaz opened this issue on Dec 17, 2021 · 13 comments.
Read more >How to use Deno - Dev Genius
As I know the technology of Deno which was invented by Ryan Dahl who ... Requires net access to "0.0.0.0:8000", run again with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@steida @gnlow I got frustrated (with esm.sh) and made a working fp-ts port for Deno
I think I solved the
HKT.ts
issue; have a look atfixtures/HKT.ts
@steida I meant it will fix error
Type '"Eq"' does not satisfy the constraint 'keyof URItoKind<any>'.
on your porting. Maybe there is another problem in esm.sh. Check my new comment on https://github.com/ije/esm.sh/issues/300.