mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-14 17:38:19 +00:00
chore: clear lint rules warns: comments, tests
This commit is contained in:
@@ -9,7 +9,7 @@ export type SchemaPreviewModelInput = {
|
||||
textResult: string | null;
|
||||
};
|
||||
|
||||
/** Можно ли скачать результат: он есть и он не пустой. */
|
||||
/** Whether the result is downloadable: it exists and is non-empty. */
|
||||
export function hasPreviewResult(input: SchemaPreviewModelInput): boolean {
|
||||
const { resultKind, result, fileResult, textResult } = input;
|
||||
if (resultKind === "image") return Boolean(result);
|
||||
|
||||
Reference in New Issue
Block a user