filter type

This commit is contained in:
Niels Lyngsø
2024-08-14 11:17:26 +02:00
parent a176eda920
commit fd6402a4bc

View File

@@ -6,7 +6,7 @@ import type { UmbBlockDataType } from '../types.js';
* @param udi {string} - The udi of the block Element data.
* @returns
*/
export function UmbDataPathBlockElementDataFilter(data: UmbBlockDataType): string {
export function UmbDataPathBlockElementDataFilter(data: Pick<UmbBlockDataType, 'udi'>): string {
// write a array of strings for each property, where alias must be present and culture and segment are optional
//const filters: Array<string> = [`@.udi = '${udi}'`];
//return `?(${filters.join(' && ')})`;