toStringSynv now creates normal strings
This commit is contained in:
@ -203,8 +203,9 @@ export let toObjectSync = function (filePathArg, fileTypeArg?) {
|
||||
* @param filePath
|
||||
* @returns {string|Buffer|any}
|
||||
*/
|
||||
export let toStringSync = function (filePath: string) {
|
||||
let fileString = plugins.fsExtra.readFileSync(filePath, 'utf8')
|
||||
export let toStringSync = function (filePath: string): string {
|
||||
let fileString: any = plugins.fsExtra.readFileSync(filePath, 'utf8')
|
||||
fileString = `${fileString}`
|
||||
return fileString
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user