From 777e02e92bb3fd62b2a7d3f0db5ce9abd96aedf5 Mon Sep 17 00:00:00 2001 From: Ben Beckford Date: Wed, 24 Jun 2026 21:47:07 -0700 Subject: [PATCH] chore: update workflow method wrapper type --- packages/plugin-core/src/index.ts | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/packages/plugin-core/src/index.ts b/packages/plugin-core/src/index.ts index 8b462e9de7..6c7d00d91e 100644 --- a/packages/plugin-core/src/index.ts +++ b/packages/plugin-core/src/index.ts @@ -41,9 +41,7 @@ const matchValueResult = (value: string, config: MatchValueConfig) => { }; export const assetFileFilter = () => { - return wrapper<'assetFileFilter'>(({ data, config }) => ( - matchValueResult(data.asset.originalFileName || '', config), - ); + return wrapper<'assetFileFilter'>(({ data, config }) => matchValueResult(data.asset.originalFileName || '', config)); }; export const assetMissingTimeZoneFilter = () => { @@ -93,32 +91,8 @@ export const assetLocationFilter = () => { }); }; -type AssetExifFilterConfig = MatchValueConfig & { - property: - | 'make' - | 'model' - | 'exifImageWidth' - | 'exifImageHeight' - | 'fileSizeInByte' - | 'orientation' - | 'lensModel' - | 'fNumber' - | 'focalLength' - | 'iso' - | 'description' - | 'fps' - | 'exposureTime' - | 'livePhotoCID' - | 'timeZone' - | 'projectionType' - | 'profileDescription' - | 'colorspace' - | 'bitsPerSample' - | 'rating'; -}; - export const assetExifFilter = () => { - return wrapper(({ config, data }) => { + return wrapper<'assetExifFilter'>(({ config, data }) => { if (!data.asset.exifInfo) { return { workflow: { continue: false } }; }