import {type BackendEndpoint} from '@myparcel-pdk/common'; import {type ActionContext, type PlainModifier, type QueryModifier} from './types'; export const resolveQuerySuffix = ( suffix: QueryModifier, context: ActionContext, ): PlainModifier => { // @ts-expect-error todo return typeof suffix === 'function' ? suffix(context) : suffix; };