-
Notifications
You must be signed in to change notification settings - Fork 3
/
definitions.d.ts
54 lines (47 loc) · 1.14 KB
/
definitions.d.ts
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
49
50
51
52
53
54
declare module 'main';
declare module 'dependency-tree';
declare module 'id3js' {
type ITags = {
artist: string,
title: string,
album: string,
year: string,
v1: {
title: string,
artist: string,
album: string,
year: string,
comment: string,
track: string,
version: number
},
v2: {
band: string,
composer: string,
'set-part': string,
genre: string,
title: string,
track: string,
artist: string,
album: string,
version: [number, number],
image: {
type: string,
mime: string,
description: string,
data: ArrayBuffer
}
}
}
function id3js(file: { file: string, type?: any }, callback: (err, tags: ITags) => void);
namespace id3js {
export var OPEN_LOCAL;
}
export = id3js;
}
declare module 'find' {
export function file(path: string, callback: (files: string[]) => void)
export function file(pattern: RegExp, path: string, callback: (files: string[]) => void)
export function fileSync(path: string): string[]
export function fileSync(pattern: RegExp, path: string): string[]
}