string-format icon indicating copy to clipboard operation
string-format copied to clipboard

Include type definition for TypeScript usage

Open jimsleon opened this issue 8 years ago • 2 comments

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.

jimsleon avatar Jul 21 '17 14:07 jimsleon

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

davidchambers avatar Jul 23 '17 14:07 davidchambers

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';

saikirangit avatar Oct 05 '17 03:10 saikirangit