mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 06:22:44 -08:00
build(ts): enable noUncheckedIndexedAccess and isolatedModules
This commit is contained in:
@@ -180,7 +180,7 @@ export class MediaGenerator {
|
||||
): Promise<Buffer> {
|
||||
const { format, quality = 92, maxWidth, maxHeight } = options;
|
||||
const ext = format === 'webp' ? 'webp' : format === 'png' ? 'png' : 'jpg';
|
||||
const codecMap: Record<string, string> = {
|
||||
const codecMap: Record<'jpg' | 'png' | 'webp', string> = {
|
||||
jpg: 'mjpeg',
|
||||
png: 'png',
|
||||
webp: 'webp',
|
||||
|
||||
Reference in New Issue
Block a user