Skip to content

Commit 3c44dba

Browse files
committed
chore: wip
1 parent 60d190c commit 3c44dba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/extract.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { readFile } from 'node:fs/promises'
21
import { formatDeclarations } from './utils'
32

43
export async function extractTypeFromSource(filePath: string): Promise<string> {
5-
const fileContent = await readFile(filePath, 'utf-8')
4+
const fileContent = await Bun.file(filePath).text()
65
let imports = ''
76
let declarations = ''
87
let exports = ''

0 commit comments

Comments
 (0)