Skip to content

Commit

Permalink
docs(typescript): add section about typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
mentAl-maZe committed Dec 16, 2019
1 parent 13715fc commit 545d1df
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ or
yarn add --dev @nuxtjs/axios @nuxtjs/proxy nuxt-laravel@next
```

#### Typescript

To have code completion/type checking on the `Configuration` interface from `@nuxt/types`, include the package in your `tsconfig.json`.

```json
{
"compilerOptions": {
// ...
"types": [
"@nuxt/types",
// ...
"nuxt-laravel"
]
}
}
```

### Configuration

Simply include `nuxt-laravel` in `modules` and set the `mode` setting to `'spa'` in your `nuxt.config.js`
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ or
yarn add --dev @nuxtjs/axios @nuxtjs/proxy nuxt-laravel@next
```

#### Typescript

To have code completion/type checking on the `Configuration` interface from `@nuxt/types`, include the package in your `tsconfig.json`.

```json
{
"compilerOptions": {
// ...
"types": [
"@nuxt/types",
// ...
"nuxt-laravel"
]
}
}
```

### Configuration

Simply include `nuxt-laravel` in `modules` and set the `mode` setting to `'spa'` in your `nuxt.config.js`
Expand Down

0 comments on commit 545d1df

Please sign in to comment.