Add dependency
Some checks failed
/ build_android (push) Failing after 21s

This commit is contained in:
Pieter Vander Vennet 2025-06-18 18:50:46 +02:00
parent 55470c090d
commit 6947a1adba
1260 changed files with 111297 additions and 0 deletions

24
@capacitor/assets/dist/input-asset.d.ts vendored Normal file
View file

@ -0,0 +1,24 @@
import sharp from 'sharp';
import type { AssetGenerator } from './asset-generator';
import type { AssetKind, Platform } from './definitions';
import { Format } from './definitions';
import type { OutputAsset } from './output-asset';
import type { Project } from './project';
/**
* An instance of an asset that we will use to generate
* a number of output assets.
*/
export declare class InputAsset {
path: string;
kind: AssetKind;
platform: Platform;
private filename;
width?: number;
height?: number;
private _sharp;
constructor(path: string, kind: AssetKind, platform: Platform);
pipeline(): sharp.Sharp | undefined;
format(): Format.Jpeg | Format.Png | Format.Svg | Format.Unknown;
load(): Promise<void>;
generate(strategy: AssetGenerator, project: Project): Promise<OutputAsset[]>;
}