Skip to content

v2.0.0-rc.17 includes incompatible types for TypeScript #3041

Closed
@Dids

Description

@Dids
ERROR in node_modules/bootstrap-vue/src/index.d.ts
28:37 Cannot find name 'mixed'.
    26 |     | 'dark'
    27 |   type SortDirection = 'asc' | 'desc' | 'last'
  > 28 |   type FormatterCallback = ((value: mixed, key: string, item: mixed) => any)
       |                                     ^
    29 | 
    30 |   export interface TableField {
    31 |     label?: string

ERROR in node_modules/bootstrap-vue/src/index.d.ts
28:63 Cannot find name 'mixed'.
    26 |     | 'dark'
    27 |   type SortDirection = 'asc' | 'desc' | 'last'
  > 28 |   type FormatterCallback = ((value: mixed, key: string, item: mixed) => any)
       |                                                               ^
    29 | 
    30 |   export interface TableField {
    31 |     label?: string

ERROR in node_modules/bootstrap-vue/src/index.d.ts
40:15 Cannot find name 'mixed'.
    38 |     tdClass?: string | string[] | FormatterCallback
    39 |     thClass?: string | string[]
  > 40 |     thStyle?: mixed
       |               ^
    41 |     variant?: TableVariant | string
    42 |     tdAttr?: mixed | ((value: mixed, key: string, item: mixed) => mixed)
    43 |     isRowHeader?: boolean

ERROR in node_modules/bootstrap-vue/src/index.d.ts
42:14 Cannot find name 'mixed'.
    40 |     thStyle?: mixed
    41 |     variant?: TableVariant | string
  > 42 |     tdAttr?: mixed | ((value: mixed, key: string, item: mixed) => mixed)
       |              ^
    43 |     isRowHeader?: boolean
    44 |   }
    45 |   export interface TableFieldObject {

ERROR in node_modules/bootstrap-vue/src/index.d.ts
42:31 Cannot find name 'mixed'.
    40 |     thStyle?: mixed
    41 |     variant?: TableVariant | string
  > 42 |     tdAttr?: mixed | ((value: mixed, key: string, item: mixed) => mixed)
       |                               ^
    43 |     isRowHeader?: boolean
    44 |   }
    45 |   export interface TableFieldObject {

ERROR in node_modules/bootstrap-vue/src/index.d.ts
42:57 Cannot find name 'mixed'.
    40 |     thStyle?: mixed
    41 |     variant?: TableVariant | string
  > 42 |     tdAttr?: mixed | ((value: mixed, key: string, item: mixed) => mixed)
       |                                                         ^
    43 |     isRowHeader?: boolean
    44 |   }
    45 |   export interface TableFieldObject {

ERROR in node_modules/bootstrap-vue/src/index.d.ts
42:67 Cannot find name 'mixed'.
    40 |     thStyle?: mixed
    41 |     variant?: TableVariant | string
  > 42 |     tdAttr?: mixed | ((value: mixed, key: string, item: mixed) => mixed)
       |                                                                   ^
    43 |     isRowHeader?: boolean
    44 |   }
    45 |   export interface TableFieldObject {

ERROR in node_modules/bootstrap-vue/src/index.d.ts
149:20 Interface 'Table' incorrectly extends interface 'Vue'.
  Types of property 'fields' are incompatible.
    Type 'TableFieldObject | (string | ({ key: string; } & TableField))[] | undefined' is not assignable to type 'FieldFlagsBag'.
      Type 'undefined' is not assignable to type 'FieldFlagsBag'.
    147 |   }
    148 |   export interface Progress extends Vue {}
  > 149 |   export interface Table extends Vue {
        |                    ^
    150 |     refresh: () => void
    151 |     fields?: TableFieldObject | TableFieldArray
    152 |   }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions