We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d190c commit 3c44dbaCopy full SHA for 3c44dba
1 file changed
src/extract.ts
@@ -1,8 +1,7 @@
1
-import { readFile } from 'node:fs/promises'
2
import { formatDeclarations } from './utils'
3
4
export async function extractTypeFromSource(filePath: string): Promise<string> {
5
- const fileContent = await readFile(filePath, 'utf-8')
+ const fileContent = await Bun.file(filePath).text()
6
let imports = ''
7
let declarations = ''
8
let exports = ''
0 commit comments