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

Include type definition for TypeScript usage #23

Open
jimsleon opened this issue Jul 21, 2017 · 2 comments
Open

Include type definition for TypeScript usage #23

jimsleon opened this issue Jul 21, 2017 · 2 comments

Comments

@jimsleon
Copy link

TypeScript becomes popular these days, so it will be great if type definition is included in the npm page so that it could be used in TypeScript projects.

@davidchambers
Copy link
Owner

I'll happily accept a pull request for this, @jimsleon. :)

@saikirangit
Copy link

saikirangit commented Oct 5, 2017

We just created a file string-format.d.ts under src

declare module 'string-format' {
const format: any;
export = format;
}

and used it as

import * as format from 'string-format';

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

No branches or pull requests

3 participants