Skip to content

Commit

Permalink
feat(public/fs): exports types
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 20, 2019
1 parent d0f6536 commit ee7a7b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/public/fs/index.ts
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion src/public/fs/json.ts
Expand Up @@ -20,7 +20,7 @@ function json(
): () => Promise<void> {
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;
};

Expand Down

0 comments on commit ee7a7b6

Please sign in to comment.