doum
2026-04-30 146cd503d32b415d11fb4109ad106063310cc726
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
declare namespace UniApp {
  interface InnerAudioContext {
    src: string;
    play(): void;
    pause(): void;
    stop(): void;
    destroy(): void;
    onPlay(callback: Function): void;
    onEnded(callback: Function): void;
    onError(callback: Function): void;
    offPlay(callback: Function): void;
  }
 
  interface FileSystemManager {
    writeFile(option: {
      filePath: string;
      data: string | ArrayBuffer;
      encoding: string;
      success?: Function;
      fail?: Function;
    }): void;
    unlinkSync(filePath: string): void;
  }
}
 
declare const uni: {
  createInnerAudioContext(): UniApp.InnerAudioContext;
  getFileSystemManager(): UniApp.FileSystemManager;
  request(options: any): void;
  env: {
    USER_DATA_PATH: string;
  };
};