conjure-typescript icon indicating copy to clipboard operation
conjure-typescript copied to clipboard

Provide libdom free api package

Open robert3005 opened this issue 4 years ago • 0 comments

What happened?

Current conjure-typescript is tied to libdom by relying on Fetch, ReadableStream and Blob. As a result it's hard to use conjure-typescript in environments that don't have DOM available, i.e. graaljs.

What did you want to happen?

We should split conjure-typescript into 2 dependencies where one of them only has necessary api bindings and the other containing implementation such that you can provide alternatives to fetch. Potentially also would require generating different api to get rid of the other two libdom references but ArrayBuffer is part of ES5 and also included in signature.

robert3005 avatar Feb 02 '21 23:02 robert3005