Skip to content

Commit

Permalink
fix: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Apr 18, 2020
1 parent 7b2b82a commit a7d56e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ import { date } from "commodo-fields-date";
const Company = compose(
withFields({
name: string(),
createdOn: date()
})
)(function() {});
createdOn: date(),
// Other fields you might need...
}),
// Other higher order functions (HOFs) you might need...
)();

const company = new Company();
company.name = "Acme Corporation";
Expand Down

0 comments on commit a7d56e0

Please sign in to comment.