js_facade_gen
js_facade_gen copied to clipboard
Generates package:js Javascript interop facades for arbitrary TypeScript libraries
I'm working on a project where this would be immensely helpful. A number of libraries I've tried converting spit out code that wouldn't work at all or would only work...
Is this package still mantained? It seems that there are unresolved issues. @kevmoo @jacob314
Hello there! It would be interesting to add plan support for null-safety generated code.
I tried to generate a facade of the chrome extensions api but got this error: ``` /usr/local/lib/node_modules/dart_js_facade_gen/index.js:28 if (e.name !== 'DartFacadeError') throw e; ^ TypeError: Cannot read properties of undefined...
When using `dart_js_facade_gen` version 0.0.7 on google-app-scripts definition files, I got following errors ``` $ dart_js_facade_gen google-apps-script.utilities.d.ts /usr/local/lib/node_modules/dart_js_facade_gen/index.js:28 if (e.name !== 'DartFacadeError') throw e; ^ TypeError: Cannot read property 'getSourceFile'...
File to transpile ``` import { AlertButton } from './ui/alert/Alert'; import { ExtendedP2PPairingResponse } from './types/P2PPairingResponse'; import { PostMessagePairingRequest } from './types/PostMessagePairingRequest'; import { ExtendedPostMessagePairingResponse } from './types/PostMessagePairingResponse'; import {...
Hi, I'm trying to use this tool to generate dart files for ketting. This is a library written in TS. I have generated the definitions witch tsc --declaration. After that...
Thoughts? @jacob314 (We should probably add srawlins in too)
I'm getting 100s of ``` ❯ dart_js_facade_gen http.d.ts http.d.ts:299:51: Unexpected TypeNode kind: OptionalType http.d.ts:299:51: Internal error. Generate null type name. http.d.ts:299:74: Unexpected TypeNode kind: OptionalType http.d.ts:299:74: Internal error. Generate null...