Skip to content

Commit

Permalink
chore: update readme output
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 7, 2024
1 parent 184f071 commit 8c6ec8d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let User = t.object({
description: 'unix seconds',
}),
}, {
additionalProperties: false,
description: 'a User record',
});

// Infer its TypeScript definition:
Expand All @@ -60,6 +60,7 @@ type User = t.Infer<typeof User>;
console.log(User);
//-> {
//-> type: "object",
//-> description: "a User record",
//-> additionalProperties: false,
//-> properties: {
//-> uid: {
Expand All @@ -81,24 +82,26 @@ console.log(User);
//-> type: "array",
//-> prefixItems: [{
//-> type: "number",
//-> minimum: 0,
//-> minimum: 0
//-> }, {
//-> enum: ["novice", "pro", "expert", "master"]
//-> }]
//-> }],
//-> minItems: 2,
//-> maxItems: 2
//-> },
//-> interests: {
//-> type: "array",
//-> items: {
//-> type: "string",
//-> minLength: 4,
//-> maxLength: 36,
//-> maxLength: 36
//-> }
//-> },
//-> last_updated: {
//-> type: "integer",
//-> minimum: 0,
//-> examples: [1722642982],
//-> description: "unix seconds",
//-> description: "unix seconds"
//-> }
//-> },
//-> required: [
Expand Down

0 comments on commit 8c6ec8d

Please sign in to comment.