Skip to content

Commit

Permalink
doc: Improved JSDoc types
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <jaid.jsx@gmail.com>
  • Loading branch information
Jaid committed Dec 19, 2019
1 parent 3bb73da commit 195e4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fss from "@absolunet/fss"
/**
* @function
* @param {string} file Path to a file
* @returns {Promise<string>} File contents in UTF-8 or null if file could not be read
* @returns {Promise<string|null>} File contents in UTF-8 or null if file could not be read
* @example
* import readFileString from "read-file-string"
* const result = await readFileString("readme.md")
Expand All @@ -28,7 +28,7 @@ export default async file => {
/**
* @function
* @param {string} file Path to a file
* @returns {string} File contents in UTF-8 or null if file could not be read
* @returns {string|null} File contents in UTF-8 or null if file could not be read
* @example
* import {readFileStringSync} from "read-file-string"
* const result = readFileStringSync("readme.md")
Expand Down

0 comments on commit 195e4ea

Please sign in to comment.