@byu-oit/nuxt-sis-context
Setup
Install
:warning: Requires Nuxt version >= 2.13 :warning:
Install with yarn:
yarn add @byu-oit/nuxt-sis-context
Install with npm:
npm install @byu-oit/nuxt-sis-context
nuxt.config.js
module.exports = {
modules: [
'@byu-oit/nuxt-sis-context',
],
}
Typescript
Add the types to your "types" array in tsconfig.json after the @nuxt/types (Nuxt 2.12.0+)
tsconfig.json
{
"compilerOptions": {
"types": [
"@nuxt/types",
"@byu-oit/nuxt-sis-context"
]
}
}
Why?
Because of the way nuxt works the
$axiosproperty on the context has to be merged into the nuxtContextinterface via declaration merging. Adding@byu-oit/nuxt-sis-contextto your types will import the types from the package and make typescript aware of the additions to theContextinterface.
Usage
TODO
Related Packages
nuxt-spa-store-init
A simple Nuxt module that will hydrate the VueX store when running in SPA mode (...
4,282
14
Version History
| Version | Released | License |
|---|---|---|
| 3.0.2 | Apache-2.0 | |
| 3.0.1 | Apache-2.0 | |
| 3.0.0 | Apache-2.0 | |
| 2.0.4 | Apache-2.0 | |
| 2.0.3 | Apache-2.0 | |
| 2.0.2 | Apache-2.0 | |
| 2.0.1 | Apache-2.0 | |
| 2.0.0 | Apache-2.0 | |
| 1.3.0 | Apache-2.0 | |
| 1.2.1 | Apache-2.0 | |
| 1.1.6 | Apache-2.0 | |
| 1.1.5 | Apache-2.0 | |
| 1.1.4 | Apache-2.0 | |
| 1.1.2 | Apache-2.0 | |
| 1.1.1 | Apache-2.0 | |
| 1.1.0 | Apache-2.0 | |
| 1.0.11 | Apache-2.0 | |
| 1.0.10 | Apache-2.0 | |
| 1.0.9 | Apache-2.0 | |
| 1.0.8 | Apache-2.0 | |
| 1.0.7 | Apache-2.0 | |
| 1.0.6 | Apache-2.0 | |
| 1.0.5 | Apache-2.0 | |
| 1.0.4 | Apache-2.0 | |
| 1.0.3 | Apache-2.0 | |
| 1.0.2 | Apache-2.0 | |
| 1.0.1 | Apache-2.0 | |
| 1.0.0 | Apache-2.0 | |
| 0.1.11 | Apache-2.0 | |
| 0.1.10 | Apache-2.0 |
Showing the latest 30 of 41. See every release on npm