mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +08:00
add naturalSort typings
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/// <reference path="./naturalSort.d.ts" />
|
||||
|
||||
import naturalSort = require("naturalSort");
|
||||
|
||||
[5, 3, 2, 4, 1].sort(naturalSort);
|
||||
["a", "c", "b", "z", "w", "l"].sort(naturalSort);
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for NaturalSort
|
||||
// Project: https://github.com/studio-b12/natural-sort
|
||||
// Definitions by: Antonio Morales <https://github.com/a-morales>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "naturalSort" {
|
||||
function naturalSort<T>(a: T, b: T): number;
|
||||
export = naturalSort;
|
||||
}
|
||||
Reference in New Issue
Block a user