Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
README.md | H A D | 16-Mar-2021 | 983 | 28 | 16 | |
index.d.ts | H A D | 16-Mar-2021 | 28.1 KiB | 1,636 | 1,630 | |
package.json | H A D | 16-Mar-2021 | 1.2 KiB | 57 | 57 |
README.md
1# @fortawesome/fontawesome-common-types - SVG with JavaScript 2 3> "I came here to chew bubblegum and install Font Awesome 5 - and I'm all out of bubblegum" 4 5[![npm](https://img.shields.io/npm/v/@fortawesome/fontawesome-common-types.svg?style=flat-square)](https://www.npmjs.com/package/@fortawesome/fontawesome-common-types) 6 7## What is this package? 8 9Font Awesome 5 JavaScript packages support TypeScript. This package abstracts out some of the common definitions that those packages use. 10 11## Here be dragons 12 13If you are trying to import types from this package we *highly* recommend you do the following instead as *all types in this package are re-exported to the main fontawesome package*. 14 15your.ts 16 17``` 18import { 19 IconName 20} from `@fortawesome/fontawesome-svg-core` 21 22const myIcon: IconName = "..." 23``` 24 25## Issues and support 26 27Start with [GitHub issues](https://github.com/FortAwesome/Font-Awesome/issues) and ping us on [Twitter](https://twitter.com/fontawesome) if you need to. 28