Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/bun.js/node/fs_events.zig
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ pub const FSEventsWatcher = struct {
recursive: bool,
ctx: ?*anyopaque,

pub const Callback = PathWatcher.Callback;
pub const Callback = *const fn (ctx: ?*anyopaque, event: Event, is_file: bool) void;
pub const UpdateEndCallback = *const fn (ctx: ?*anyopaque) void;

pub fn init(loop: *FSEventsLoop, path: string, recursive: bool, callback: Callback, updateEnd: UpdateEndCallback, ctx: ?*anyopaque) *FSEventsWatcher {
Expand Down Expand Up @@ -640,11 +640,9 @@ pub fn closeAndWait() void {
const string = []const u8;

const std = @import("std");
const EventType = @import("./path_watcher.zig").PathWatcher.EventType;
const Semaphore = std.Thread.Semaphore;

const PathWatcher = @import("./path_watcher.zig").PathWatcher;
const EventType = PathWatcher.EventType;

const bun = @import("bun");
const Mutex = bun.Mutex;
const UnboundedQueue = bun.threading.UnboundedQueue;
Expand Down
Loading
Loading