Skip to content

Commit e505b74

Browse files
committed
// ❌ Arrays and objects are not allowed in trait schemas
1 parent 1cabbe8 commit e505b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type Entity, trait } from 'koota';
22

33
export const Avoidance = trait({
4-
neighbors: [] as Entity[],
4+
neighbors: () => [] as Entity[],
55
range: 1.5,
66
});

0 commit comments

Comments
 (0)