js_facade_gen
js_facade_gen copied to clipboard
Generates package:js Javascript interop facades for arbitrary TypeScript libraries
``` declare interface XType { a: string; b: number; c(): boolean; } declare type X = { prototype: XType, new(a: string, b: number): XType } declare type Y = X;...
Certain identifiers are acceptable in JavaScript but not in Dart. One common case where these identifiers get used is in Object properties. obj[string] can be used to give an object...
``` // Code generated by Prisma ([email protected]). DO NOT EDIT. // Please don't change this file manually but run `prisma generate` to update it. // For more information, please read...
Just finished trying to run on babylonjs https://github.com/BabylonJS/Babylon.js/tree/master/dist Johns-MacBook-Pro:dist johndavis$ dart_js_facade_gen --destination=../../tmp --base_path=. babylon.d.ts babylon.module.d.ts Transpiling [ 'babylon.d.ts', 'babylon.module.d.ts' ] to ../../tmp Output file: ../../tmp/babylon.dart Output file: ../../tmp/babylon.module.dart /usr/local/lib/node_modules/dart_js_facade_gen/index.js:11 if...
I tried to convert the ts definition of threejs from definitelytyped. I encountered a lot of warnings with `ArrayLike` which is used in their definitions and translated as `ArrayLike` in...
Generated the js-interop facade for [Google visualization api](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/google.visualization/index.d.ts) and is missing the imp factory constructors for google chart types. All it has is the [fakeConstructor$](https://github.com/sureshg/googlecharts.dart/blob/master/lib/googleviz.dart#L1917) instead one with `HTMLElement` ....
Dart facade genration failed for [service_worker_api](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/service_worker_api/index.d.ts) typescript definition file, especially supporting ES6 promises. ```dart dart_js_facade_gen service_worker_api.d.ts > service_worker_api.dart service_worker_api.d.ts:657:38: ',' expected. service_worker_api.d.ts:659:58: ']' expected. service_worker_api.d.ts:659:59: ')' expected. service_worker_api.d.ts:659:60: Property or...
Getting a bunch of errors, not sure there is enough room in here to paste them all. If they don't repro let me know and I'll copy a bunch of...
Users likely don't want these to be doc comments on the first class
I've tried to run dart_js_facade_gen on socket.io-client and encountered an error: ``` javascript if (e.name !== 'DartFacadeError') throw e; ^ Cannot nest code comments// Constructors on anonymous interfaces are not...