UNPKG
mongoose-management
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
Mongoose schemas management tool
github.com/kettil/mongoose-management
kettil/mongoose-management
mongoose-management
/
build
/
lib
/
cli
/
helper
/
sort.d.ts
7 lines
(6 loc)
•
206 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
declare
const
sortByName
: <T
extends
{
getName
:
() =>
string
; }>
(
a
: T,
b
: T
) =>
1
|
0
| -
1
;
export
declare
const
sortByPath
: <T
extends
{
getPath
:
() =>
string
; }>
(
a
: T,
b
: T
) =>
1
|
0
| -
1
;