vsivsi / meteor-job-collection

A persistent and reactive job queue for Meteor, supporting distributed workers that can run anywhere.
https://atmospherejs.com/vsivsi/job-collection
Other
385 stars 68 forks source link

Include the typings syntax to the API doc #212

Closed darrenwng closed 7 years ago

darrenwng commented 7 years ago

Any example of the syntax to be included into the typings.d.ts file?

vsivsi commented 7 years ago

Can you give a bit more context for your question? Does this have something to do with using Typescript? If so, I don't use it myself, so I have no context to understand your question.

darrenwng commented 7 years ago

Yup. Am trying to get the package to work together with typescript. Compiler currently throws an error that the JobCollection cannot be found. Need to include the module declaration in the typings file. Is there any intention to get this package to work with typescript?

vsivsi commented 7 years ago

Given that I don't use typescript (and don't foresee myself using it anytime soon) I'm probably not the person to do that work. I'd be happy to consider a PR if the changes required are straightforward, well documented and include suitable tests so that the continued compatibility can be preserved via CI.

darrenwng commented 7 years ago

Sure. Let me see if I can come up with a solution for this.

pedrofg commented 6 years ago

import { JobCollection, Job } from 'meteor/vsivsi:job-collection';

In case you need a workaround