Skip to content

Commit

Permalink
fix: add types for loadfonts
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi authored May 2, 2023
1 parent d685042 commit a9cd91f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { Tooltip } from './plugins/tooltip'
import { TrackFocus } from './plugins/track-focus'
import { Transfer } from './plugins/transfer'
import { UploadDragDrop } from './plugins/upload-dragdrop'
import { loadFonts } from './plugins/fonts-loader'

export {
Alert,
Expand Down Expand Up @@ -77,4 +78,5 @@ export {
TrackFocus,
Transfer,
UploadDragDrop,
loadFonts
}
5 changes: 5 additions & 0 deletions types/plugins/fonts-loader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Load Bootstrap Italia fonts
* @param {string} path - the path where fonts live
*/
export function loadFonts(path: string = '/node_modules/bootstrap-italia/dist/fonts')

0 comments on commit a9cd91f

Please sign in to comment.