smhg / gettext-parser

Parse and compile gettext po and mo files, nothing more, nothing less
MIT License
158 stars 43 forks source link

TypeScript support #49

Closed pronebird closed 5 years ago

pronebird commented 5 years ago

It's impossible to use the gettext-parser with TypeScript due to lack of annotations. It would be ace to add them.

smhg commented 5 years ago

What do you mean with impossible? It uses the JSDoc annotations, right? Do they contain errors?

pronebird commented 5 years ago

I don't know about that, but I see the error that tells me that the annotations file .d.ts is not found for gettext-parser.

import { po } from 'gettext-parser';

Could not find the declaration file for module 'gettext-parser'

smhg commented 5 years ago

I don't know enough about TypeScript to help you with this. I'll close the now issue, but please feel free to (gather support to) submit a PR to add type declarations.