@byu-oit/nuxt-alerts
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
$axiosproperty on the context has to be merged into the nuxtContextinterface via declaration merging. Adding@byu-oit/nuxt-alertsto your types will import the types from the package and make typescript aware of the additions to theContextinterface.
Usage
TODO
Related Packages
nuxt-define
One utility function for module authors to define compiler constants for all bui...
13,412,511
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 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.6 | Apache-2.0 | ||
| 0.1.5 | Apache-2.0 | ||
| 0.1.4 | Apache-2.0 | ||
| 0.1.3 | Apache-2.0 | ||
| 0.1.2 | Apache-2.0 | ||
| 0.1.1 | Apache-2.0 | ||
| 0.1.0 | Apache-2.0 | ||
| 0.0.9 | Apache-2.0 | ||
| 0.0.8 | Apache-2.0 | ||
| 0.0.7 | Apache-2.0 | ||
| 0.0.6 | ^2.6.11 | Apache-2.0 | |
| 0.0.5 | ^2.6.11 | Apache-2.0 | |
| 0.0.4 | ^2.6.11 | Apache-2.0 | |
| 0.0.3 | ^2.6.11 | Apache-2.0 | |
| 0.0.2 | ^2.6.11 | Apache-2.0 | |
| 0.0.1 | ^2.6.11 | Apache-2.0 | |
| 0.0.0 | ^2.6.11 | Apache-2.0 |