Skip to content

Commit

Permalink
fix scansync
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Jan 2, 2024
1 parent 9aec575 commit 09f895b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# main

- Fix `Bun.scanSync` APIs.

# 0.3.0

- Integrate Node bindings from [`rescript-nodejs`](https://github.com/TheSpyder/rescript-nodejs).
Expand Down
4 changes: 2 additions & 2 deletions src/Bun.res
Original file line number Diff line number Diff line change
Expand Up @@ -2787,7 +2787,7 @@ module Glob = {
* ```
*/
@send
external scanSync: (t, ~options: globScanOptions=?) => Iterator.t<string> = "scan"
external scanSync: (t, ~options: globScanOptions=?) => Iterator.t<string> = "scanSync"

/**
* Synchronously scan a root directory recursively for files that match this glob pattern. Returns an iterator.
Expand All @@ -2809,7 +2809,7 @@ module Glob = {
* ```
*/
@send
external scanFromCwdSync: (t, string) => Iterator.t<string> = "scan"
external scanFromCwdSync: (t, string) => Iterator.t<string> = "scanSync"

/**
* Match the glob against a string
Expand Down

0 comments on commit 09f895b

Please sign in to comment.