Skip to content

Commit

Permalink
Merge pull request #5 from koiralakiran1/type-definition
Browse files Browse the repository at this point in the history
Add typescript type definition for TS projects support
  • Loading branch information
pratishshr authored Jul 8, 2020
2 parents 717b225 + 9f10c9f commit bee85ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface Params {
[key: string]: string | number;
}

export default function interpolate(str: string, params: Params): string;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
},
"engines": {
"node": ">=8"
}
},
"types": "./index.d.ts"
}

0 comments on commit bee85ad

Please # to comment.