js_facade_gen icon indicating copy to clipboard operation
js_facade_gen copied to clipboard

Generates package:js Javascript interop facades for arbitrary TypeScript libraries

Results 33 js_facade_gen issues
Sort by recently updated
recently updated
newest added

Hello, I am getting this error: ``` y-axis.d.ts:1:1: Could not format because the source could not be parsed: line 29, column 11: Methods must have an explicit list of parameters....

I am trying to generate an interop for `ts-ebml`, however, the package fails: ``` dart_js_facade_gen --destination . --base-path ts-ebml-master\lib ts-ebml-master\lib\index.d.ts ts-ebml-master\lib\cli.d.ts ts-ebml-master\lib\EBML.d.ts ts-ebml-master\lib\EBMLDecoder.d.ts ts-ebml-master\lib\EBMLEncoder.d.ts ts-ebml-master\lib\EBMLReader.d.ts ts-ebml-master\lib\tools.d.ts ``` I am using...

Attempting to generate a wrapper for [monaco-editor](https://github.com/Microsoft/monaco-editor) leads to the following error message: ```bash $ dart_js_facade_gen monaco.d.ts /Users/brettmorgan/homebrew/lib/node_modules/dart_js_facade_gen/index.js:28 if (e.name !== 'DartFacadeError') throw e; ^ TypeError: Cannot read property 'getSourceFile'...

```dart Future getUser([GetUserOptions options]) { final Object t = this; final _Auth0Client tt = t; return promiseToFuture(tt.getUser(options)); } ``` I cannot use the default function parameters because the generated code...

When using dart_js_facade_gen version 0.0.7 on google-app-scripts.base.d.ts definition files, I got following errors ``` $ dart_js_facade_gen google-apps-script.base.d.ts /usr/local/lib/node_modules/dart_js_facade_gen/index.js:28 if (e.name !== 'DartFacadeError') throw e; ^ Cannot nest code comments// Constructors...

Generated `fakeConstructor$` do not work and can't be called in dart2js, hence they probably shouldn't be generated anymore. [This](https://github.com/dart-lang/js_facade_gen/blob/ea261549bb41ccb39603fdba59227b590c923a51/lib/declaration.ts#L127-L143) should be removed.

Hi I have a .d.ts file containing `Promise` and it fails but when I change the code to `Promise` it's ok I'm trying to understand why so I found that...

In the same way we're wrapping returned Promises in `promiseToFuture`, so they can be directly used in Dart as Futures, I think we could also wrap callbacks passed as parameters...

``` // For a TypeScript function like: declare class X { /** * Prints "it's a number" if `x` is a number or "it's a string" if `x` is a...

Hello! I think this could be a wonderful tool to make Dart a better option for web development. I wanted to crete typings for the javascript version of the processing...