multer-gridfs-storage: Fix lint (#19223)

This commit is contained in:
Andy
2017-08-22 10:55:50 -07:00
committed by GitHub
parent aa57351ab3
commit 786026e477
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for multer-gridfs-storage 1.1
// Project: https://github.com/devconcept/multer-gridfs-storage
// Definitions by: devconcept <https://github.com/devconcept/>
// Definitions by: devconcept <https://github.com/devconcept>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { EventEmitter } from 'events';
@@ -2,11 +2,11 @@ import * as MulterGridfsStorage from 'multer-gridfs-storage';
import { Grid } from "gridfs-stream";
// Exported interfaces
let opt1: MulterGridfsStorage.GfsStorageOptions;
let opt2: MulterGridfsStorage.UrlStorageOptions;
declare const opt1: MulterGridfsStorage.GfsStorageOptions;
declare const opt2: MulterGridfsStorage.UrlStorageOptions;
// All options
let gfsCtr = new MulterGridfsStorage({
const gfsCtr = new MulterGridfsStorage({
gfs: new Grid(),
filename: (req, file, cb) => cb(null, ''),
chunkSize: (req, file, cb) => cb(null, 1),
@@ -16,7 +16,7 @@ let gfsCtr = new MulterGridfsStorage({
root: (req, file, cb) => cb(null, 'unicorns')
});
let urlCtr = new MulterGridfsStorage({
const urlCtr = new MulterGridfsStorage({
url: '',
filename: (req, file, cb) => cb(null, ''),
chunkSize: (req, file, cb) => cb(null, 1),
@@ -27,11 +27,11 @@ let urlCtr = new MulterGridfsStorage({
});
// Other properties are optional
let gfsOnly = new MulterGridfsStorage({
const gfsOnly = new MulterGridfsStorage({
gfs: new Grid()
});
let urlOnly = new MulterGridfsStorage({
const urlOnly = new MulterGridfsStorage({
url: ''
});