chore: upgrade API doc to latest typedoc, fixes #593

This commit is contained in:
Harttle
2023-03-20 00:41:06 +08:00
committed by Jun Yang
parent c6cde9cd10
commit da93102c1c
40 changed files with 3870 additions and 7145 deletions
+2 -1
View File
@@ -3,8 +3,9 @@ import { sep, resolve as nodeResolve, extname, dirname as nodeDirname } from 'pa
import { stat, statSync, readFile as nodeReadFile, readFileSync as nodeReadFileSync } from 'fs'
import { requireResolve } from './node-require'
type NodeReadFile = (file: string, encoding: string, cb: ((err: Error | null, result: string) => void)) => void
const statAsync = promisify(stat)
const readFileAsync = promisify<string, string, string>(nodeReadFile)
const readFileAsync = promisify<string, string, string>(nodeReadFile as NodeReadFile)
export async function exists (filepath: string) {
try {