Can we add a `d.ts` type hint file
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Define the following interface to facilitate the ts project:
```ts
type Audio = {
name: String,
url: String,
artist: String,
cover: String,
lrc: String,
theme: String,
type: 'auto' | 'hls' | 'normal'
}
type AplayerOptions = {
container: HTMLElement,
fixed: Boolean,
mini: Boolean,
autoplay: Boolean,
theme: String,
loop: 'all' | 'one' | 'none',
order: 'list' | 'random',
preload: 'none' | 'metadata' | 'auto',
volume: number,
mutex: Boolean,
listFolded: Boolean,
listMaxHeight: number,
lrcType: 0 | 1 | 2 | 3,
audio: Audio[],
storageName: String
}
```
And include the source files when publishing the project on npm
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.