@freearhey/core
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ /// <reference types="node" /> | ||
_read(filepath: string): Promise<string>; | ||
json(filepath: string): Promise<object>; | ||
json(filepath: string): Promise<object | object[]>; | ||
exists(filepath: string): Promise<boolean>; | ||
@@ -14,0 +14,0 @@ existsSync(filepath: string): boolean; |
{ | ||
"name": "@freearhey/core", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Toolset for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -48,3 +48,3 @@ import { File } from './' | ||
async json(filepath: string): Promise<object> { | ||
async json(filepath: string): Promise<object | object[]> { | ||
const content = await this._read(filepath) | ||
@@ -51,0 +51,0 @@ |
62761
0.04%