diff --git a/naturalSort.d.ts b/naturalSort.d.ts new file mode 100644 index 0000000..83ed426 --- /dev/null +++ b/naturalSort.d.ts @@ -0,0 +1,3 @@ +declare module 'javascript-natural-sort' { + export default function(a: string | number, b: string | number): number +} \ No newline at end of file diff --git a/package.json b/package.json index 4b1bf07..1f69900 100644 --- a/package.json +++ b/package.json @@ -1,27 +1,27 @@ { - "name": "javascript-natural-sort", + "name": "typescript-natural-sort", "version": "0.7.1", - "description": "Natural Sort algorithm for Javascript - Version 0.7 - Released under MIT license", + "description": "Natural Sort algorithm for Typescript/Javascript - Version 0.7 - Released under MIT license", "main": "naturalSort.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", - "url": "https://github.com/Bill4Time/javascript-natural-sort.git" + "url": "https://github.com/tedgreen29/typescript-natural-sort.git" }, "keywords": [ "natural", "sort", - "javascript", + "typescript", "array", "sort", "sorting" ], - "author": "Jim Palmer (based on chunking idea from Dave Koelle, packaged by @khous of Bill4Time)", + "author": "Jim Palmer (based on chunking idea from Dave Koelle, packaged by Ted Green with typescript updates)", "license": "MIT", "bugs": { - "url": "https://github.com/Bill4Time/javascript-natural-sort/issues" + "url": "https://github.com/tedgreen29/typescript-natural-sort/issues" }, - "homepage": "https://github.com/Bill4Time/javascript-natural-sort" + "homepage": "https://github.com/tedgreen29/typescript-natural-sort" }