Skip to content

Commit

Permalink
set tsc's noImplicitAny=true ; fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
psnider committed Dec 9, 2016
1 parent 807d519 commit 6d42e2f
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 82 deletions.
6 changes: 3 additions & 3 deletions generic-data-server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Cursor, DocumentBase, DocumentID, Conditions, Fields, ErrorOnlyCallback,
// these seem to be missing from mongoose
// TODO: add to mongoose.d.ts
type MongooseObjectId = any
type MongooseDataFunction = (...any) => any
type MongooseDataFunction = (...args: any[]) => any
type MongooseDataDefinitionFunction = MongooseObjectId | MongooseDataFunction
type MongooseDataDefinitionType = MongooseDataDefinitionFunction | MongooseDataDefinitionFunction[] | MongooseDataDefinition | MongooseDataDefinition[]
type MongooseDataDefinition = {[fieldname:string]: MongooseDataDefinitionType}
Expand Down Expand Up @@ -63,10 +63,10 @@ export interface SingleTypeDatabaseServerOptions {
export class SingleTypeDatabaseServer {
constructor(options: SingleTypeDatabaseServerOptions)
configureExpress(app: express.Express): void
connect(): Promise<void>
connect(done: ErrorOnlyCallback): void
connect() : Promise<void>
disconnect(done: (error?: Error) => void)
disconnect() : Promise<void>
disconnect(done: ErrorOnlyCallback): void
}


Expand Down
37 changes: 10 additions & 27 deletions generic-data-server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generic-data-server.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6d42e2f

Please sign in to comment.