Skip to content

Commit

Permalink
fix(FormatOptions): client missing some values
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Aug 23, 2024
1 parent 2dae563 commit fcd00b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Innertube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import type { DownloadOptions, FormatOptions } from './types/FormatUtils.js';
import type { SessionOptions } from './core/Session.js';
import type Format from './parser/classes/misc/Format.js';

export type InnertubeConfig = SessionOptions;
export type InnerTubeConfig = SessionOptions;

export type InnerTubeClient = 'IOS' | 'WEB' | 'ANDROID' | 'YTMUSIC' | 'YTMUSIC_ANDROID' | 'YTSTUDIO_ANDROID' | 'TV_EMBEDDED' | 'YTKIDS';

Expand All @@ -66,7 +66,7 @@ export default class Innertube {
this.#session = session;
}

static async create(config: InnertubeConfig = {}): Promise<Innertube> {
static async create(config: InnerTubeConfig = {}): Promise<Innertube> {
return new Innertube(await Session.create(config));
}

Expand Down
2 changes: 0 additions & 2 deletions src/types/Clients.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Studio.ts
export type UpdateVideoMetadataOptions = Partial<{
title: string;
description: string;
Expand All @@ -17,7 +16,6 @@ export type UploadedVideoMetadataOptions = Partial<{
is_draft: boolean;
}>;

// Music.ts
export type MusicSearchFilters = Partial<{
type: 'all' | 'song' | 'video' | 'album' | 'playlist' | 'artist';
}>;
5 changes: 3 additions & 2 deletions src/types/FormatUtils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { InnerTubeClient } from '../Innertube.js';
import type { Format } from '../parser/misc.js';

export type URLTransformer = (url: URL) => URL;
Expand All @@ -21,9 +22,9 @@ export interface FormatOptions {
*/
format?: string;
/**
* InnerTube client, can be ANDROID, WEB, YTMUSIC, YTMUSIC_ANDROID, YTSTUDIO_ANDROID or TV_EMBEDDED
* InnerTube client.
*/
client?: 'WEB' | 'ANDROID' | 'YTMUSIC_ANDROID' | 'YTMUSIC' | 'YTSTUDIO_ANDROID' | 'TV_EMBEDDED';
client?: InnerTubeClient;
}

export interface DownloadOptions extends FormatOptions {
Expand Down

0 comments on commit fcd00b0

Please sign in to comment.