@empathyco/x-components
Version:
Empathy X Components
13 lines • 643 B
TypeScript
import type { QueryOrigin, QueryOriginInit, ResultOrigin } from '../types/origin';
/**
* Creates a {@link QueryOrigin} or a {@link ResultOrigin} string given a {@link QueryFeature} and
* a {@link FeatureLocation}.
* If it can't be created, it returns `null`.
*
* @param originInit - An object containing the needed properties to create a {@link QueryOrigin} or
* a {@link ResultOrigin}.
* @returns The composed origin, or `null` if it is not able to create the origin.
* @internal
*/
export declare function createOrigin({ feature, location, }: QueryOriginInit): QueryOrigin | ResultOrigin | null;
//# sourceMappingURL=origin.d.ts.map