UNPKG
@ifit/mongoose-dao
Version:
latest (3.1.1)
3.1.1
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
1.3.0
1.0.2
1.0.1
1.0.0
Mongo helper methods for working with data in a DAO or repository pattern
@ifit/mongoose-dao
/
out
/
sample
/
data
/
models
/
foo.d.ts
6 lines
(5 loc)
•
239 B
TypeScript
View Raw
1
2
3
4
5
6
import
*
as
mongoose
from
"mongoose"
;
import
{
IFooDO
}
from
"../data-objects/foo"
;
export
type
IFooDoc
=
IFooDO
& mongoose.
Document
;
export
type
IFooModel
= mongoose.
Model
<
IFooDoc
>;
export
declare
const
FooModel
: mongoose.
Model
<
IFooDoc
>;