fetch-mock icon indicating copy to clipboard operation
fetch-mock copied to clipboard

Support deno

Open wheresrhys opened this issue 5 years ago • 2 comments

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 avatar Jan 24 '20 23:01 wheresrhys

Useful? https://github.com/davidbailey00/deno-npm-demo

wheresrhys avatar Mar 16 '20 10:03 wheresrhys

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/[email protected]/esm/client.js?dts";
// @ts-ignore: It's a real mess
import fetchMock from "https://cdn.skypack.dev/[email protected]/esm/client.js?dts";
export const fm: typeof tfm = fetchMock;

flevi29 avatar Oct 28 '22 12:10 flevi29