import type { createCreatePropertyName } from './create-property-name'; import type { createIsIllegalWord } from './is-illegal-word'; export const createFormRemoveStatement = (createPropertyName: ReturnType, isIllegalWord: ReturnType) => (property: string, expressionAttributeNames: { [key: string]: string }): string => { if (isIllegalWord(property)) { const propertyName = createPropertyName(property, expressionAttributeNames); return `#${propertyName}`; } return property; };