Skip to content

Commit

Permalink
docs: remove duplicate usage in readme (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve authored Mar 13, 2023
1 parent c9b036b commit 948885c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ const packageJson = await resolvePackageJSON('/fully/resolved/path/to/folder')

```js
import { readTSConfig } from 'pkg-types'

const pkg = await readTSConfig('path/to/tsconfig.json')
const tsconfig = await readTSConfig()
// or
const tsconfig = await readTSConfig('/fully/resolved/path/to/folder')
```

### `writeTSConfig`
Expand All @@ -72,15 +73,6 @@ const filename = await resolveTSConfig()
const tsconfig = await resolveTSConfig('/fully/resolved/path/to/folder')
```

### `readTSConfig`

```js
import { readTSConfig } from 'pkg-types'
const filename = await readTSConfig()
// or
const tsconfig = await readTSConfig('/fully/resolved/path/to/folder')
```

### `resolveFile`

```js
Expand Down

0 comments on commit 948885c

Please sign in to comment.