From 966363c36d744e39f64178a98fb177b527459cdc Mon Sep 17 00:00:00 2001 From: Luke Dawkes Date: Mon, 8 Apr 2019 10:41:21 +0100 Subject: [PATCH 1/2] fix(typescript): Replaced invalid 'mixed' keyword with 'any' --- src/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index de6e0e92998..cc2f0c3046a 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -3,14 +3,14 @@ // Definitions by: Nicola Bosco declare module 'bootstrap-vue' { - import Vue, { PluginFunction, PluginObject } from 'vue' + import Vue, { PluginFunction, PluginObject } from 'vue'; class BootstrapVue implements PluginObject<{}> { [key: string]: any public install: PluginFunction<{}> } - const VuePlugin: BootstrapVue + const VuePlugin: BootstrapVue; export default VuePlugin @@ -25,7 +25,7 @@ declare module 'bootstrap-vue' { | 'light' | 'dark' type SortDirection = 'asc' | 'desc' | 'last' - type FormatterCallback = ((value: mixed, key: string, item: mixed) => any) + type FormatterCallback = ((value: any, key: string, item: any) => any) export interface TableField { label?: string @@ -37,9 +37,9 @@ declare module 'bootstrap-vue' { sortDirection?: SortDirection tdClass?: string | string[] | FormatterCallback thClass?: string | string[] - thStyle?: mixed + thStyle?: any variant?: TableVariant | string - tdAttr?: mixed | ((value: mixed, key: string, item: mixed) => mixed) + tdAttr?: any | ((value: any, key: string, item: any) => any) isRowHeader?: boolean } export interface TableFieldObject { From 7df25b2e834b0f6e6cec58b887bcf441d5f51a99 Mon Sep 17 00:00:00 2001 From: Luke Dawkes Date: Mon, 8 Apr 2019 13:13:24 +0100 Subject: [PATCH 2/2] Remove semicolons from index.d.ts --- src/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index cc2f0c3046a..28f1c10e201 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -3,14 +3,14 @@ // Definitions by: Nicola Bosco declare module 'bootstrap-vue' { - import Vue, { PluginFunction, PluginObject } from 'vue'; + import Vue, { PluginFunction, PluginObject } from 'vue' class BootstrapVue implements PluginObject<{}> { [key: string]: any public install: PluginFunction<{}> } - const VuePlugin: BootstrapVue; + const VuePlugin: BootstrapVue export default VuePlugin