Installation
sh
npm add @outloud/model
sh
pnpm add @outloud/model
sh
yarn add @outloud/model
sh
bun add @outloud/model
Setup
Enable experimentalDecorators
in tsconfig.json.
json
{
"compilerOptions": {
"experimentalDecorators": true
}
}
Nuxt
If you are using Nuxt with version < 3.12, there is a bug in ESBuild and updating tsconfig won't work. Add this to nuxt.config.ts
or any config with esbuild.
ts
export default defineNuxtConfig({
vite: {
esbuild: {
tsconfigRaw: {}
},
}
})