kesha-antonov / react-native-background-downloader

About A library for React-Native to help you download large files on iOS and Android both in the foreground and most importantly in the background.
https://www.npmjs.com/package/@kesha-antonov/react-native-background-downloader
Other
26 stars 3 forks source link

Incorrect type for setConfig #8

Open relaxxpls opened 2 months ago

relaxxpls commented 2 months ago

https://github.com/kesha-antonov/react-native-background-downloader/blob/1f52afe3d4359d9c66f0216c3e89b1ae7a7a5f6e/index.d.ts#L12-L16

doesn't match

https://github.com/kesha-antonov/react-native-background-downloader/blob/1f52afe3d4359d9c66f0216c3e89b1ae7a7a5f6e/index.ts#L53

I believe it should instead be:

export interface Config {
  headers?: DownloadHeaders;
  progressInterval: number : null;
  isLogsEnabled?: boolean;
}

type SetConfig = (config: Config) => void;

Please update it 🙌🏼