File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ export class NowPlaying {
3434 this . provider = provider
3535
3636 this . parseArgs ( args )
37+ this . streamerArgs = args . streamerArgs
3738 this . storageKind = args . storageKind || StorageKinds . INMEMORY
3839 this . useCache = args . useCache || true
3940 this . cacheDuration = args . cacheDuration || 60000 ;
4041
4142 // this is whatever storage mechanic the user selects
4243 this . storer = this . getStorer ( this . storageKind )
4344 this . streamer = this . getStreamer ( )
44- this . streamerArgs = args . streamerArgs
4545 }
4646
4747 private parseArgs ( args : unknown ) : void {
Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ export const SpotifyProviderArgsSchema = BaseNowPlayingArgsSchema.extend({
4747export type SpotifyProviderArgs = z . infer < typeof SpotifyProviderArgsSchema > ;
4848
4949export const NoopProviderArgsSchema = BaseNowPlayingArgsSchema . extend ( {
50- streamerArgs : z . unknown ( ) ,
50+ streamerArgs : z . never ( ) ,
5151} ) ;
5252export type NoopProviderArgs = z . infer < typeof NoopProviderArgsSchema > ;
You can’t perform that action at this time.
0 commit comments