Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support deno #502

Open
wheresrhys opened this issue Jan 24, 2020 · 2 comments
Open

Support deno #502

wheresrhys opened this issue Jan 24, 2020 · 2 comments

Comments

@wheresrhys
Copy link
Owner

Not exactly sure what the correct approach should be to maintaining the codebase. maybe something to consider when upgrading the codebase to ES modules

@wheresrhys
Copy link
Owner Author

@flevi29
Copy link
Contributor

flevi29 commented Oct 28, 2022

For anyone else stumbling in here, it's usable via skypack. It's a little messy to get it to work with proper types, or maybe I'm just missing something, but it works.

import type * as tfm from "https://cdn.skypack.dev/fetch-mock@9.11.0/esm/client.js?dts";
// @ts-ignore: It's a real mess
import fetchMock from "https://cdn.skypack.dev/fetch-mock@9.11.0/esm/client.js?dts";
export const fm: typeof tfm = fetchMock;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants