question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why are Bootstrap-Vue types so bad?

See original GitHub issue

The typings file at src/index.d.ts is out of date and only includes types for methods, but not properties, computed properties, etc. Since there is no @types/bootstrap-vue, wouldn’t it make sense to improve the typings file included in the source?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jacobmllr95commented, Apr 8, 2019

The latest changes should have improved types.

0reactions
hisuwhcommented, Feb 25, 2021

What’s happening with typings. They don’t seem to work at all: image

Code:


import { Component, Emit, Vue } from "vue-property-decorator";
import { BButton } from "bootstrap-vue";

@Component
export default class DeleteButton extends Vue {

    public render(h) {
        return (
            <BButton
                variant="danger"
                size="sm"
                onClick={this.onClick}
            >
                <i class="far fa-trash-alt" /> Delete
            </BButton>
        );
    }

    @Emit("click")
    private onClick(): void {
        return undefined;
    }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap vs Bootstrap Vue | What are the differences?
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. On the other hand,...
Read more >
Form Input | Components - BootstrapVue
Create various type inputs such as: text, password, number, url, email, ... of custom component based inputs, and may generate a bad user...
Read more >
Bootstrap-vue doesn't load CSS - Stack Overflow
the command in bootstrap-vue's getting started page is so wrong! npm install vue bootstrap bootstrap-vue when you do that it installs the latest ......
Read more >
Can I use bootstrap in vue 3 without using bootstrap-vue?
I'm new to front end development so I'm not sure if this is a bad idea or not… Bootstrap-vue has not been updated...
Read more >
Form Textarea | BootstrapVue 3 - cdmoro
If no value is provided to rows , then it will default to 2 (the browser ... want to use a particular state...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found