File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11import type { Placement } from '@popperjs/core'
22import type { Placements } from '../../types'
3- import type { Alignments } from './types'
3+ import type { Alignments , Breakpoints } from './types'
44
5- export const getAlignmentClassNames = ( alignment : object | string ) => {
5+ export const getAlignmentClassNames = ( alignment : Alignments ) => {
66 const classNames : string [ ] = [ ]
77 if ( typeof alignment === 'object' ) {
8- Object . keys ( alignment ) . map ( ( key ) => {
9- classNames . push ( `dropdown-menu${ key === 'xs' ? '' : `-${ key } ` } -${ alignment [ key ] } ` )
10- } )
8+ for ( const key in alignment ) {
9+ classNames . push (
10+ `dropdown-menu${ key === 'xs' ? '' : `-${ key } ` } -${ alignment [ key as keyof Breakpoints ] } ` ,
11+ )
12+ }
1113 }
1214
1315 if ( typeof alignment === 'string' ) {
Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/no-explicit-any */
12import { App } from 'vue'
23import * as Components from './components'
34import * as Directives from './directives'
45
56const CoreuiVue = {
67 install : ( app : App ) : void => {
78 for ( const key in Components ) {
8- app . component ( key , Components [ key ] )
9+ app . component ( key , ( Components as { [ key : string ] : any } ) [ key ] )
910 }
1011
1112 for ( const key in Directives ) {
12- app . directive ( Directives [ key ] [ 'name' ] , Directives [ key ] )
13+ app . directive (
14+ ( Directives as { [ key : string ] : any } ) [ key ] [ 'name' ] ,
15+ ( Directives as { [ key : string ] : any } ) [ key ] ,
16+ )
1317 }
1418 } ,
1519}
Original file line number Diff line number Diff line change 1515 "noImplicitThis" : true ,
1616 "noImplicitAny" : true ,
1717 "strictNullChecks" : true ,
18- "suppressImplicitAnyIndexErrors" : true ,
1918 "noUnusedLocals" : true ,
2019 "noUnusedParameters" : true ,
2120 "esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments