Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikjasek committed Jun 18, 2023
1 parent cba0548 commit 495b85a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-pants-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"required-properties": patch
---

update readme
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ npm i required-properties

### `assertRequiredProperties`

First argument is object, second argument is an array of properties which can be `null` or `undefined`. If nested object, you can separate properties with dot `.`

```ts
interface Person {
firstName: string | null;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "tsc",
"dev": "tsup src/index.ts --watch --format cjs,esm --dts",
"build": "tsup src/index.ts --format cjs,esm --dts",
"generate-changelog": "changeset",
"release": "pnpm run build && changeset publish",
"test": "vitest",
"typecheck": "vitest typecheck"
Expand Down
15 changes: 0 additions & 15 deletions tsconfig.vitest-temp.json

This file was deleted.

0 comments on commit 495b85a

Please sign in to comment.