diff --git a/types/mongoose-simple-random/index.d.ts b/types/mongoose-simple-random/index.d.ts index a57f366df2..4625f582d1 100644 --- a/types/mongoose-simple-random/index.d.ts +++ b/types/mongoose-simple-random/index.d.ts @@ -2,12 +2,11 @@ // Project: https://github.com/larryprice/mongoose-simple-random // Definitions by: My Self // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// declare module 'mongoose-simple-random' { import mongoose = require('mongoose'); - var _: (schema: mongoose.Schema) => void; - export = _; + function plugin(schema: mongoose.Schema): void; + export = plugin; } declare module "mongoose" {