-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
47 lines (45 loc) · 1.13 KB
/
index.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
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export interface Song {
id: string
bitrate?: number
sampleRate?: number
duration?: number
path?: string
size?: number
title?: string
album?: Album
artists: Array<Artists>
year?: string
genre?: Array<string>
lyrics?: string
track_no?: string
playbackUrl?: string
song_coverPath_high?: string
song_coverPath_low?: string
type: string
playlistId?: string
}
export interface Album {
album_id: string
album_name: string
album_coverPath_high?: string
album_coverPath_low?: string
album_artist?: string
}
export interface Artists {
artist_id: string
artist_name: string
}
export interface Playlist {
id: string
title: string
path: string
}
export interface SongWithLen {
song: Song
size: number
current: number
}
export function scanFiles(dir: string, thumbnailDir: string, databaseDir: string, artistSplit: string, threads: number, force: boolean, callback_song: (err: null | Error, result: SongWithLen) => void, callback_playlist: (err: null | Error, result: Playlist) => void, callback_end: (err: null | Error) => void): void