question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi! I’m just trying to create bindings for PouchDB. So I went on DefinitelyTyped and there I found this:

/// <reference types="pouchdb-core" />
/// <reference types="pouchdb-adapter-idb" />
/// <reference types="pouchdb-adapter-websql" />
/// <reference types="pouchdb-adapter-http" />
/// <reference types="pouchdb-mapreduce" />
/// <reference types="pouchdb-replication" />
declare const PouchDb: PouchDB.Static;
export = PouchDb;

My question is simple: what’s the best strategy to create bindings from this kind of file? Download all files individually and feed them to ts2fable?

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
whitetiglecommented, Dec 18, 2017

Well, at least ts2fable allowed me to get all the types for the zounds options PouchDb has got. I just have to make my way through the Database object. So it’s ok. 😄

1reaction
whitetiglecommented, Dec 20, 2017

I just tried to make this more clear here: https://github.com/fable-compiler/ts2fable/issues/147

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference types - C# Reference
There are two kinds of types in C#: reference types and value types. Variables of reference types store references to their data (objects), ......
Read more >
Value type and reference type
Value types are completely represented by their meaning, while reference types are references to another value.
Read more >
Adding and Deleting Reference Types
To add a new reference type: 1. From the EndNote Edit menu, choose Preferences, select the Reference Type option in the list of...
Read more >
Value Type and Reference Type
In other words, a reference type contains a pointer to another memory location that holds the data. For example, consider the following string...
Read more >
4. Reference Types - Java 8 Pocket Guide [Book]
Reference types hold references to objects and provide a means to access ... There are two type categories in Java: reference types and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found