Skip to content

Commit 0644be1

Browse files
committed
Fixed @Entity macro
1 parent c8d0f85 commit 0644be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CoreModelMacros/Entity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ extension EntityMacro {
112112
entityName = try typeName(of: node, providingMembersOf: declaration, in: context)
113113
}
114114
let entityNameDecl = """
115-
public static var entityName: String { "\(entityName)" }
115+
public static var entityName: EntityName { "\(entityName)" }
116116
"""
117117
return DeclSyntax(stringLiteral: entityNameDecl)
118118
}

0 commit comments

Comments
 (0)