From ee7a7b61124159b5a9d285094efbae29f66de14d Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Mon, 20 May 2019 07:56:00 +0200 Subject: [PATCH] feat(public/fs): exports types --- src/public/fs/index.ts | 1 + src/public/fs/json.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/public/fs/index.ts b/src/public/fs/index.ts index d0b449f..484ed4d 100644 --- a/src/public/fs/index.ts +++ b/src/public/fs/index.ts @@ -6,3 +6,4 @@ export { default as move } from './move'; export { default as read } from './read'; export { default as rw } from './rw'; export { default as write } from './write'; +export * from './types'; diff --git a/src/public/fs/json.ts b/src/public/fs/json.ts index 21bd3d2..7189a3e 100644 --- a/src/public/fs/json.ts +++ b/src/public/fs/json.ts @@ -20,7 +20,7 @@ function json( ): () => Promise { return async () => { const _fn: TContentFn = async (file, raw) => { - const json = await fn(raw ? JSON.parse(raw) : undefined); + const json = await fn(file, raw ? JSON.parse(raw) : undefined); return json ? JSON.stringify(json, null, 2) : undefined; };