File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ export default {
103
103
import fs from ' node:fs'
104
104
import { quansyncMacro } from ' quansync'
105
105
106
- // Create an quansync function by providing `sync` and `async` implementations
106
+ // Create a quansync function by providing `sync` and `async` implementations
107
107
const readFile = quansyncMacro ({
108
108
sync : (path : string ) => fs .readFileSync (path ),
109
109
async : (path : string ) => fs .promises .readFile (path ),
110
110
})
111
111
112
- // Create an quansync function by providing a **async** function
112
+ // Create a quansync function by providing an **async** function
113
113
const myFunction = quansyncMacro (async function (filename ) {
114
114
// Use `await` to call another quansync function
115
115
const code = await readFile (filename , ' utf8' )
You can’t perform that action at this time.
0 commit comments