Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeScript bindings #114

Closed
bajtos opened this issue Aug 8, 2017 · 1 comment
Closed

Add TypeScript bindings #114

bajtos opened this issue Aug 8, 2017 · 1 comment
Assignees

Comments

@bajtos
Copy link
Member

bajtos commented Aug 8, 2017

Add type definitions for all classes and methods exported by strong-globalize, to make it easy to use strong-globalize in TypeScript projects.

import * as g from 'strong-globalize';

const name = 'TypeScript';
// g.f has correct type definition of arguments
// g.f return type is annotated as string
const str = g.f('hello world from %s', name);
console.log(str);

Related: #113

@bajtos
Copy link
Member Author

bajtos commented Jun 18, 2018

Fixed by #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants