mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-01 20:46:14 +00:00
feat(MusicResponsiveListItem): make flex/fixed cols public (#382)
Plus refactor a few things.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Memo } from '../parser/helpers.js';
|
||||
import { EmojiRun, TextRun } from '../parser/misc.js';
|
||||
import PlatformShim, { FetchFunction } from '../types/PlatformShim.js';
|
||||
import userAgents from './user-agents.js';
|
||||
|
||||
@@ -221,4 +222,8 @@ export function u8ToBase64(u8: Uint8Array): string {
|
||||
|
||||
export function base64ToU8(base64: string): Uint8Array {
|
||||
return new Uint8Array(atob(base64).split('').map((char) => char.charCodeAt(0)));
|
||||
}
|
||||
|
||||
export function isTextRun(run: TextRun | EmojiRun): run is TextRun {
|
||||
return !('emoji' in run);
|
||||
}
|
||||
Reference in New Issue
Block a user