路泰科技体检小程序UI设计新版本
1
wwl
2025-07-30 61b58bd03d04d2eb50ac2d93a188c819fe67e01e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// @flow
declare type FilePath = string;
declare type GlobPattern = string;
 
export type BackendType = 
  | 'fs-events'
  | 'watchman'
  | 'inotify'
  | 'windows'
  | 'brute-force';
export type EventType = 'create' | 'update' | 'delete';
export interface Options {
  ignore?: Array<FilePath | GlobPattern>,
  backend?: BackendType
}
export type SubscribeCallback = (
  err: ?Error,
  events: Array<Event>
) => mixed;
export interface AsyncSubscription {
  unsubscribe(): Promise<void>
}
export interface Event {
  path: FilePath,
  type: EventType
}
declare module.exports: {
  getEventsSince(
    dir: FilePath,
    snapshot: FilePath,
    opts?: Options
  ): Promise<Array<Event>>,
  subscribe(
    dir: FilePath,
    fn: SubscribeCallback,
    opts?: Options
  ): Promise<AsyncSubscription>,
  unsubscribe(
    dir: FilePath,
    fn: SubscribeCallback,
    opts?: Options
  ): Promise<void>,
  writeSnapshot(
    dir: FilePath,
    snapshot: FilePath,
    opts?: Options
  ): Promise<FilePath>
}