-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove static things from c-code (#342)
* Remove all static things * Package Version Bump * Expose since parameter * Ammend ts declarations to allow since * Add node8 and remove node13 from tests Co-authored-by: Philipp Dunkel <pdunkel1@bloomberg.net>
- Loading branch information
1 parent
662406c
commit 6a3bb59
Showing
11 changed files
with
338 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,46 @@ | ||
declare type Event = | ||
| 'created' | ||
| 'cloned' | ||
| 'modified' | ||
| 'deleted' | ||
| 'moved' | ||
| 'root-changed' | ||
| 'unknown'; | ||
declare type Type = 'file' | 'directory' | 'symlink'; | ||
declare type Event = "created" | "cloned" | "modified" | "deleted" | "moved" | "root-changed" | "unknown"; | ||
declare type Type = "file" | "directory" | "symlink"; | ||
declare type FileChanges = { | ||
inode: boolean; | ||
finder: boolean; | ||
access: boolean; | ||
xattrs: boolean; | ||
inode: boolean; | ||
finder: boolean; | ||
access: boolean; | ||
xattrs: boolean; | ||
}; | ||
declare type Info = { | ||
event: Event; | ||
path: string; | ||
type: Type; | ||
changes: FileChanges; | ||
flags: number; | ||
event: Event; | ||
path: string; | ||
type: Type; | ||
changes: FileChanges; | ||
flags: number; | ||
}; | ||
declare type WatchHandler = (path: string, flags: number, id: string) => void; | ||
export declare function watch( | ||
path: string, | ||
handler: WatchHandler, | ||
): () => Promise<void>; | ||
export declare function watch(path: string, handler: WatchHandler): () => Promise<void>; | ||
export declare function watch(path: string, since: number, handler: WatchHandler); | ||
export declare function getInfo(path: string, flags: number): Info; | ||
export declare const constants: { | ||
None: 0x00000000; | ||
MustScanSubDirs: 0x00000001; | ||
UserDropped: 0x00000002; | ||
KernelDropped: 0x00000004; | ||
EventIdsWrapped: 0x00000008; | ||
HistoryDone: 0x00000010; | ||
RootChanged: 0x00000020; | ||
Mount: 0x00000040; | ||
Unmount: 0x00000080; | ||
ItemCreated: 0x00000100; | ||
ItemRemoved: 0x00000200; | ||
ItemInodeMetaMod: 0x00000400; | ||
ItemRenamed: 0x00000800; | ||
ItemModified: 0x00001000; | ||
ItemFinderInfoMod: 0x00002000; | ||
ItemChangeOwner: 0x00004000; | ||
ItemXattrMod: 0x00008000; | ||
ItemIsFile: 0x00010000; | ||
ItemIsDir: 0x00020000; | ||
ItemIsSymlink: 0x00040000; | ||
ItemIsHardlink: 0x00100000; | ||
ItemIsLastHardlink: 0x00200000; | ||
OwnEvent: 0x00080000; | ||
ItemCloned: 0x00400000; | ||
None: 0x00000000; | ||
MustScanSubDirs: 0x00000001; | ||
UserDropped: 0x00000002; | ||
KernelDropped: 0x00000004; | ||
EventIdsWrapped: 0x00000008; | ||
HistoryDone: 0x00000010; | ||
RootChanged: 0x00000020; | ||
Mount: 0x00000040; | ||
Unmount: 0x00000080; | ||
ItemCreated: 0x00000100; | ||
ItemRemoved: 0x00000200; | ||
ItemInodeMetaMod: 0x00000400; | ||
ItemRenamed: 0x00000800; | ||
ItemModified: 0x00001000; | ||
ItemFinderInfoMod: 0x00002000; | ||
ItemChangeOwner: 0x00004000; | ||
ItemXattrMod: 0x00008000; | ||
ItemIsFile: 0x00010000; | ||
ItemIsDir: 0x00020000; | ||
ItemIsSymlink: 0x00040000; | ||
ItemIsHardlink: 0x00100000; | ||
ItemIsLastHardlink: 0x00200000; | ||
OwnEvent: 0x00080000; | ||
ItemCloned: 0x00400000; | ||
}; | ||
export {} | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.