Skip to content

Commit

Permalink
Readme Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Nov 23, 2024
1 parent 039192b commit 885df02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ We can also attach a description to the response format.

### Dependency Injection

```diff
```ts
const Character = T.struct({
- name: T.string,
+ name: T.string`Preferably names common to those who are {"national identity"}.`,
name: T.string`Preferably names common to those who are {"national identity"}.`,
age: T.number`Ensure between 1 and 110.`,
})

const AmericanCharacter = Character.apply({
"national identity": "american"
"national identity": "american",
})
```

0 comments on commit 885df02

Please sign in to comment.