feat(MusicResponsiveListItem): make flex/fixed cols public (#382)

Plus refactor a few things.
This commit is contained in:
LuanRT
2023-04-13 05:35:46 -03:00
committed by GitHub
parent ec9c0979f5
commit 096bf362c9
2 changed files with 131 additions and 86 deletions

View File

@@ -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);
}