storyblok / storyblok-vue

Vue.js SDK for Storyblok CMS
MIT License
95 stars 20 forks source link

missing option in apiOptions type #770

Open lukeJEdwards opened 1 week ago

lukeJEdwards commented 1 week ago

Describe the issue you're facing

When wanting to get story by uuid the apiOptions type don't allow for find_by. Add a stackBlitz but it doesn't support type hints will still send the api request but a bit annoying the option is supported on the type

Reproduction

https://stackblitz.com/edit/vitejs-vite-rusp3a?file=src%2FApp.vue

Steps to reproduce

Try to add find_by to apiOptions you'll get "Object literal may only specify known properties, and 'find_by' does not exist in type"

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 AMD Ryzen 7 1700 Eight-Core Processor
    Memory: 5.90 GB / 15.95 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.4.0 - ~\AppData\Local\pnpm\pnpm.EXE
    bun: 1.1.4 - ~\.bun\bin\bun.EXE       
  Browsers:
    Edge: Chromium (130.0.2849.46)        
    Internet Explorer: 11.0.19041.4355

Used Package Manager

pnpm

Error logs (Optional)

No response

Validations