invertase / denque

The fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries.
https://docs.page/invertase/denque
Apache License 2.0
353 stars 33 forks source link

Proper Deno Import? #39

Open tmikaeld opened 2 years ago

tmikaeld commented 2 years ago

Any chance we can get a proper module for Deno?

error: TS2596 [ERROR]: 'Denque' can only be imported by turning on the 'esModuleInterop' flag and using a default import.
import { Denque } from "https://deno.land/x/denque@v2.0.1/index.js";
         ~~~~~~
    at file:///home/t/renderer/server.ts:3:10

TS2497 [ERROR]: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
import { Denque } from "https://deno.land/x/denque@v2.0.1/index.js";
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at file:///home/t/renderer/server.ts:3:24

Found 2 errors.
Salakar commented 2 years ago

I'm not super familiar with Deno but I would accept PRs for this

tmikaeld commented 2 years ago

I've just started using it myself, but I can see if I can figure it out, thanks!