Extending types / BaseColorVariant does not work, Type '"myvariant"' is not assignable to type 'keyof BaseColorVariant | null | undefined'. #1473
-
Hi, I'm trying to extend the Unfortunately, extending the types doesn't work as expected. I tried to follow the Extending types manual described here: https://bootstrap-vue-next.github.io/bootstrap-vue-next/docs/types.html#extending-types
The declare module 'bootstrap-vue-next/dist/src/types' {
export interface BaseColorVariant {
myvariant: unknown
}
export interface BaseButtonVariant {
}
export interface BaseTextColorVariant {
}
export interface BaseSize {
}
} ...and the file is added to the Does anyone have an idea why this is not working? Edit: declare module 'node_modules/bootstrap-vue-next/dist/src/types' {
export interface BaseColorVariant {
myvariant: unknown
}
export interface BaseButtonVariant {
}
export interface BaseTextColorVariant {
}
export interface BaseSize {
}
} I actually just "inferred" this from VS Code generating an import for import type { BaseColorVariant } from 'node_modules/bootstrap-vue-next/dist/src/types' instead of generating an import like this import type { BaseColorVariant } from 'bootstrap-vue-next/dist/src/types' But according to the docs I guess something with the paths is messed up and it should actually work with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should have made this as an issue. |
Beta Was this translation helpful? Give feedback.
You should have made this as an issue.