1.0.5 • Published 4 years ago
@byu-oit/nuxt-alerts v1.0.5
Setup
Install
Install with yarn:
yarn add @byu-oit/nuxt-alerts
Install with npm:
npm install @byu-oit/nuxt-alerts
nuxt.config.js
module.exports = {
modules: [
'@byu-oit/nuxt-alerts',
],
}
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-alerts"
]
}
}
Why?
Because of the way nuxt works the
$axios
property on the context has to be merged into the nuxtContext
interface via declaration merging. Adding@byu-oit/nuxt-alerts
to your types will import the types from the package and make typescript aware of the additions to theContext
interface.
Usage
TODO
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.2
4 years ago
0.1.3
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago
0.0.0
4 years ago