Files
model/TelosysTools/templates/infinimotion/frontend/frontend_entity_ts.vm
2025-11-14 01:19:25 +01:00

18 lines
626 B
Plaintext

## --------------------------------------------------
#if ( !($entity.hasTag("BaseModel") || $entity.hasTag("Omdb") || $entity.hasTag("Statistics")) )
#cancel("Not a Base or Omdb Model")
#end
## --------------------------------------------------
#set( $env.language = 'TypeScript' )
#foreach( $link in $entity.links )
import $link.fieldType.replace("[]", "") from "./${link.fieldType.replace("[]", "")}";
#end
export default interface $entity.name {
#foreach( $attribute in $entity.attributes )
${attribute.name}: ${attribute.type};
#end
#foreach( $link in $entity.links )
${link.fieldName}: ${link.fieldType};
#end
}