diff --git a/src/utils/index.ts b/src/utils/index.ts index ba08323..a7482a3 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,4 +1,8 @@ -export const renameProperties = (features) => +type FeatureWithBegin = { begin?: string | number }; + +export const renameProperties = ( + features: T[] +): Array => features.map((ft) => ({ ...ft, start: ft.begin || undefined,