From b3a873bbc9381be12a09ea94d78c148237251441 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Tue, 23 Jan 2018 14:15:38 +0100 Subject: [PATCH] Fix flow --- storage/file.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/storage/file.js b/storage/file.js index 55027d214..ce6c3ae13 100644 --- a/storage/file.js +++ b/storage/file.js @@ -387,11 +387,15 @@ export type ChainPadServer_Storage_t = { getChannelMetadata: (channelName:string, cb:(err:?Error|string, data:?any)=>void)=>void, clearChannel: (channelName:string, (err:?Error)=>void)=>void }; -const flow_Config = require('../config.example.js'); -type Config_t = typeof(flow_Config); +export type ChainPadServer_Config_t = { + verbose?: boolean, + filePath?: string, + channelExpirationMs?: number, + openFileLimit?: number +}; */ module.exports.create = function ( - conf /*:Config_t*/, + conf /*:ChainPadServer_Config_t*/, cb /*:(store:ChainPadServer_Storage_t)=>void*/ ) { var env = {