Skip to content

Commit e4f6a32

Browse files
authored
Merge pull request #2 from BolajiOlajide/bo/fix-zod-error
fix zod error
2 parents 99c711a + f563df6 commit e4f6a32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ export const SpotifyProviderArgsSchema = BaseNowPlayingArgsSchema.extend({
4747
export type SpotifyProviderArgs = z.infer<typeof SpotifyProviderArgsSchema>;
4848

4949
export const NoopProviderArgsSchema = BaseNowPlayingArgsSchema.extend({
50-
streamerArgs: z.unknown(),
50+
streamerArgs: z.never(),
5151
});
5252
export type NoopProviderArgs = z.infer<typeof NoopProviderArgsSchema>;

0 commit comments

Comments
 (0)