mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Found a way.
This commit is contained in:
+5
-1
@@ -5,7 +5,11 @@
|
||||
|
||||
declare module 'mongoose-simple-random' {
|
||||
import mongoose = require('mongoose');
|
||||
function plugin(schema: mongoose.Schema): void;
|
||||
// Dummy function allows to avoid hard to kill or fix tslint warning
|
||||
// (exporting pluginFunc will make this a non-importable module)
|
||||
function pluginFunc(schema: mongoose.Schema): void;
|
||||
// Let allows typescript to still use ES2015 style imports
|
||||
let plugin: typeof pluginFunc;
|
||||
export = plugin;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user