Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
console
Commits
d35723c5
Commit
d35723c5
authored
Dec 30, 2016
by
wudizhanche1000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mongorito定义文件
parent
8223e129
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
.gitignore
.gitignore
+4
-2
node_modules/@types/mongorito/index.d.ts
node_modules/@types/mongorito/index.d.ts
+38
-0
No files found.
.gitignore
View file @
d35723c5
# Created by .ignore support plugin (hsz.mobi)
/node_modules/
/node_modules/*
/node_modules/@types/*
/.idea/
*.js
*.js.map
!node_modules/@types/mongorito/
!/node_modules/@types/
!/node_modules/@types/mongorito/
!systemjs.config.js
node_modules/@types/mongorito/index.d.ts
0 → 100644
View file @
d35723c5
/**
* Created by weijian on 2016/12/29.
*/
/// <reference types="mongodb" />
import
*
as
mongodb
from
"
mongodb
"
;
declare
module
Mongorito
{
function
connect
(
url
:
string
):
Promise
<
mongodb
.
Db
>
class
Model
{
constructor
(
o
:
any
,
options
?:
Object
);
save
(
options
?:
any
):
Promise
<
any
>
;
create
(
options
?:
any
):
Promise
<
any
>
;
update
(
options
?:
any
):
Promise
<
any
>
;
remove
(
options
?:
any
):
Promise
<
any
>
;
static
remove
(
query
:
Object
):
Promise
<
any
>
;
static
find
(
query
:
Object
):
Promise
<
any
[]
>
;
static
count
(
query
:
Object
):
Promise
<
any
>
;
static
all
():
Promise
<
any
[]
>
static
findOne
(
query
:
Object
):
Promise
<
any
>
;
static
findById
(
id
:
string
):
Promise
<
any
>
;
static
drop
():
Promise
<
any
>
;
}
}
export
=
Mongorito
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment