Skip to content

Commit

Permalink
fix!: detect array type options
Browse files Browse the repository at this point in the history
fixes #3

Signed-off-by: Chris Lahaye <[email protected]>
  • Loading branch information
ChrisLahaye committed Nov 16, 2022
1 parent adb0ff6 commit 6f57a22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export function buildType(
metadata.fields.forEach((f) => {
if (f.target !== BaseClass && !f.target.isPrototypeOf(BaseClass)) return;

f.getType(); // detect array type options, issue #3

const field = buildFn(f);

if (field instanceof Array) {
Expand Down

0 comments on commit 6f57a22

Please sign in to comment.