From 3beef91dde4814fa3e3b7f6201093ed73c070346 Mon Sep 17 00:00:00 2001 From: Takuma HANATANI Date: Thu, 27 Feb 2020 04:55:23 +0900 Subject: [PATCH] feat(vue-feather-icons): Add vue-feather-icons type definition (#42644) --- types/vue-feather-icons/index.d.ts | 300 ++++++++++++++++++ types/vue-feather-icons/package.json | 6 + types/vue-feather-icons/tsconfig.json | 25 ++ types/vue-feather-icons/tslint.json | 1 + .../vue-feather-icons-tests.ts | 6 + 5 files changed, 338 insertions(+) create mode 100644 types/vue-feather-icons/index.d.ts create mode 100644 types/vue-feather-icons/package.json create mode 100644 types/vue-feather-icons/tsconfig.json create mode 100644 types/vue-feather-icons/tslint.json create mode 100644 types/vue-feather-icons/vue-feather-icons-tests.ts diff --git a/types/vue-feather-icons/index.d.ts b/types/vue-feather-icons/index.d.ts new file mode 100644 index 0000000000..14748f6b65 --- /dev/null +++ b/types/vue-feather-icons/index.d.ts @@ -0,0 +1,300 @@ +// Type definitions for vue-feather-icons 5.0 +// Project: https://github.com/egoist/vue-feather-icons#readme +// Definitions by: Takuma HANATANI +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Generated by: https://github.com/potato4d/vue-feather-icons-types + +import Vue from 'vue'; +import { ExtendedVue } from 'vue/types/vue'; +export interface FeatherIconProps { + size: string; +} +export type FeatherIconComponent = ExtendedVue< + Vue, + {}, + {}, + {}, + FeatherIconProps + >; +export const ActivityIcon: FeatherIconComponent; +export const AirplayIcon: FeatherIconComponent; +export const AlertCircleIcon: FeatherIconComponent; +export const AlertOctagonIcon: FeatherIconComponent; +export const AlertTriangleIcon: FeatherIconComponent; +export const AlignCenterIcon: FeatherIconComponent; +export const AlignJustifyIcon: FeatherIconComponent; +export const AlignLeftIcon: FeatherIconComponent; +export const AlignRightIcon: FeatherIconComponent; +export const AnchorIcon: FeatherIconComponent; +export const ApertureIcon: FeatherIconComponent; +export const ArchiveIcon: FeatherIconComponent; +export const ArrowDownCircleIcon: FeatherIconComponent; +export const ArrowDownLeftIcon: FeatherIconComponent; +export const ArrowDownRightIcon: FeatherIconComponent; +export const ArrowDownIcon: FeatherIconComponent; +export const ArrowLeftCircleIcon: FeatherIconComponent; +export const ArrowLeftIcon: FeatherIconComponent; +export const ArrowRightCircleIcon: FeatherIconComponent; +export const ArrowRightIcon: FeatherIconComponent; +export const ArrowUpCircleIcon: FeatherIconComponent; +export const ArrowUpLeftIcon: FeatherIconComponent; +export const ArrowUpRightIcon: FeatherIconComponent; +export const ArrowUpIcon: FeatherIconComponent; +export const AtSignIcon: FeatherIconComponent; +export const AwardIcon: FeatherIconComponent; +export const BarChart2Icon: FeatherIconComponent; +export const BarChartIcon: FeatherIconComponent; +export const BatteryChargingIcon: FeatherIconComponent; +export const BatteryIcon: FeatherIconComponent; +export const BellOffIcon: FeatherIconComponent; +export const BellIcon: FeatherIconComponent; +export const BluetoothIcon: FeatherIconComponent; +export const BoldIcon: FeatherIconComponent; +export const BookOpenIcon: FeatherIconComponent; +export const BookIcon: FeatherIconComponent; +export const BookmarkIcon: FeatherIconComponent; +export const BoxIcon: FeatherIconComponent; +export const BriefcaseIcon: FeatherIconComponent; +export const CalendarIcon: FeatherIconComponent; +export const CameraOffIcon: FeatherIconComponent; +export const CameraIcon: FeatherIconComponent; +export const CastIcon: FeatherIconComponent; +export const CheckCircleIcon: FeatherIconComponent; +export const CheckSquareIcon: FeatherIconComponent; +export const CheckIcon: FeatherIconComponent; +export const ChevronDownIcon: FeatherIconComponent; +export const ChevronLeftIcon: FeatherIconComponent; +export const ChevronRightIcon: FeatherIconComponent; +export const ChevronUpIcon: FeatherIconComponent; +export const ChevronsDownIcon: FeatherIconComponent; +export const ChevronsLeftIcon: FeatherIconComponent; +export const ChevronsRightIcon: FeatherIconComponent; +export const ChevronsUpIcon: FeatherIconComponent; +export const ChromeIcon: FeatherIconComponent; +export const CircleIcon: FeatherIconComponent; +export const ClipboardIcon: FeatherIconComponent; +export const ClockIcon: FeatherIconComponent; +export const CloudDrizzleIcon: FeatherIconComponent; +export const CloudLightningIcon: FeatherIconComponent; +export const CloudOffIcon: FeatherIconComponent; +export const CloudRainIcon: FeatherIconComponent; +export const CloudSnowIcon: FeatherIconComponent; +export const CloudIcon: FeatherIconComponent; +export const CodeIcon: FeatherIconComponent; +export const CodepenIcon: FeatherIconComponent; +export const CodesandboxIcon: FeatherIconComponent; +export const CoffeeIcon: FeatherIconComponent; +export const ColumnsIcon: FeatherIconComponent; +export const CommandIcon: FeatherIconComponent; +export const CompassIcon: FeatherIconComponent; +export const CopyIcon: FeatherIconComponent; +export const CornerDownLeftIcon: FeatherIconComponent; +export const CornerDownRightIcon: FeatherIconComponent; +export const CornerLeftDownIcon: FeatherIconComponent; +export const CornerLeftUpIcon: FeatherIconComponent; +export const CornerRightDownIcon: FeatherIconComponent; +export const CornerRightUpIcon: FeatherIconComponent; +export const CornerUpLeftIcon: FeatherIconComponent; +export const CornerUpRightIcon: FeatherIconComponent; +export const CpuIcon: FeatherIconComponent; +export const CreditCardIcon: FeatherIconComponent; +export const CropIcon: FeatherIconComponent; +export const CrosshairIcon: FeatherIconComponent; +export const DatabaseIcon: FeatherIconComponent; +export const DeleteIcon: FeatherIconComponent; +export const DiscIcon: FeatherIconComponent; +export const DollarSignIcon: FeatherIconComponent; +export const DownloadCloudIcon: FeatherIconComponent; +export const DownloadIcon: FeatherIconComponent; +export const DropletIcon: FeatherIconComponent; +export const Edit2Icon: FeatherIconComponent; +export const Edit3Icon: FeatherIconComponent; +export const EditIcon: FeatherIconComponent; +export const ExternalLinkIcon: FeatherIconComponent; +export const EyeOffIcon: FeatherIconComponent; +export const EyeIcon: FeatherIconComponent; +export const FacebookIcon: FeatherIconComponent; +export const FastForwardIcon: FeatherIconComponent; +export const FeatherIcon: FeatherIconComponent; +export const FigmaIcon: FeatherIconComponent; +export const FileMinusIcon: FeatherIconComponent; +export const FilePlusIcon: FeatherIconComponent; +export const FileTextIcon: FeatherIconComponent; +export const FileIcon: FeatherIconComponent; +export const FilmIcon: FeatherIconComponent; +export const FilterIcon: FeatherIconComponent; +export const FlagIcon: FeatherIconComponent; +export const FolderMinusIcon: FeatherIconComponent; +export const FolderPlusIcon: FeatherIconComponent; +export const FolderIcon: FeatherIconComponent; +export const FramerIcon: FeatherIconComponent; +export const FrownIcon: FeatherIconComponent; +export const GiftIcon: FeatherIconComponent; +export const GitBranchIcon: FeatherIconComponent; +export const GitCommitIcon: FeatherIconComponent; +export const GitMergeIcon: FeatherIconComponent; +export const GitPullRequestIcon: FeatherIconComponent; +export const GithubIcon: FeatherIconComponent; +export const GitlabIcon: FeatherIconComponent; +export const GlobeIcon: FeatherIconComponent; +export const GridIcon: FeatherIconComponent; +export const HardDriveIcon: FeatherIconComponent; +export const HashIcon: FeatherIconComponent; +export const HeadphonesIcon: FeatherIconComponent; +export const HeartIcon: FeatherIconComponent; +export const HelpCircleIcon: FeatherIconComponent; +export const HexagonIcon: FeatherIconComponent; +export const HomeIcon: FeatherIconComponent; +export const ImageIcon: FeatherIconComponent; +export const InboxIcon: FeatherIconComponent; +export const InfoIcon: FeatherIconComponent; +export const InstagramIcon: FeatherIconComponent; +export const ItalicIcon: FeatherIconComponent; +export const KeyIcon: FeatherIconComponent; +export const LayersIcon: FeatherIconComponent; +export const LayoutIcon: FeatherIconComponent; +export const LifeBuoyIcon: FeatherIconComponent; +export const Link2Icon: FeatherIconComponent; +export const LinkIcon: FeatherIconComponent; +export const LinkedinIcon: FeatherIconComponent; +export const ListIcon: FeatherIconComponent; +export const LoaderIcon: FeatherIconComponent; +export const LockIcon: FeatherIconComponent; +export const LogInIcon: FeatherIconComponent; +export const LogOutIcon: FeatherIconComponent; +export const MailIcon: FeatherIconComponent; +export const MapPinIcon: FeatherIconComponent; +export const MapIcon: FeatherIconComponent; +export const Maximize2Icon: FeatherIconComponent; +export const MaximizeIcon: FeatherIconComponent; +export const MehIcon: FeatherIconComponent; +export const MenuIcon: FeatherIconComponent; +export const MessageCircleIcon: FeatherIconComponent; +export const MessageSquareIcon: FeatherIconComponent; +export const MicOffIcon: FeatherIconComponent; +export const MicIcon: FeatherIconComponent; +export const Minimize2Icon: FeatherIconComponent; +export const MinimizeIcon: FeatherIconComponent; +export const MinusCircleIcon: FeatherIconComponent; +export const MinusSquareIcon: FeatherIconComponent; +export const MinusIcon: FeatherIconComponent; +export const MonitorIcon: FeatherIconComponent; +export const MoonIcon: FeatherIconComponent; +export const MoreHorizontalIcon: FeatherIconComponent; +export const MoreVerticalIcon: FeatherIconComponent; +export const MousePointerIcon: FeatherIconComponent; +export const MoveIcon: FeatherIconComponent; +export const MusicIcon: FeatherIconComponent; +export const Navigation2Icon: FeatherIconComponent; +export const NavigationIcon: FeatherIconComponent; +export const OctagonIcon: FeatherIconComponent; +export const PackageIcon: FeatherIconComponent; +export const PaperclipIcon: FeatherIconComponent; +export const PauseCircleIcon: FeatherIconComponent; +export const PauseIcon: FeatherIconComponent; +export const PenToolIcon: FeatherIconComponent; +export const PercentIcon: FeatherIconComponent; +export const PhoneCallIcon: FeatherIconComponent; +export const PhoneForwardedIcon: FeatherIconComponent; +export const PhoneIncomingIcon: FeatherIconComponent; +export const PhoneMissedIcon: FeatherIconComponent; +export const PhoneOffIcon: FeatherIconComponent; +export const PhoneOutgoingIcon: FeatherIconComponent; +export const PhoneIcon: FeatherIconComponent; +export const PieChartIcon: FeatherIconComponent; +export const PlayCircleIcon: FeatherIconComponent; +export const PlayIcon: FeatherIconComponent; +export const PlusCircleIcon: FeatherIconComponent; +export const PlusSquareIcon: FeatherIconComponent; +export const PlusIcon: FeatherIconComponent; +export const PocketIcon: FeatherIconComponent; +export const PowerIcon: FeatherIconComponent; +export const PrinterIcon: FeatherIconComponent; +export const RadioIcon: FeatherIconComponent; +export const RefreshCcwIcon: FeatherIconComponent; +export const RefreshCwIcon: FeatherIconComponent; +export const RepeatIcon: FeatherIconComponent; +export const RewindIcon: FeatherIconComponent; +export const RotateCcwIcon: FeatherIconComponent; +export const RotateCwIcon: FeatherIconComponent; +export const RssIcon: FeatherIconComponent; +export const SaveIcon: FeatherIconComponent; +export const ScissorsIcon: FeatherIconComponent; +export const SearchIcon: FeatherIconComponent; +export const SendIcon: FeatherIconComponent; +export const ServerIcon: FeatherIconComponent; +export const SettingsIcon: FeatherIconComponent; +export const Share2Icon: FeatherIconComponent; +export const ShareIcon: FeatherIconComponent; +export const ShieldOffIcon: FeatherIconComponent; +export const ShieldIcon: FeatherIconComponent; +export const ShoppingBagIcon: FeatherIconComponent; +export const ShoppingCartIcon: FeatherIconComponent; +export const ShuffleIcon: FeatherIconComponent; +export const SidebarIcon: FeatherIconComponent; +export const SkipBackIcon: FeatherIconComponent; +export const SkipForwardIcon: FeatherIconComponent; +export const SlackIcon: FeatherIconComponent; +export const SlashIcon: FeatherIconComponent; +export const SlidersIcon: FeatherIconComponent; +export const SmartphoneIcon: FeatherIconComponent; +export const SmileIcon: FeatherIconComponent; +export const SpeakerIcon: FeatherIconComponent; +export const SquareIcon: FeatherIconComponent; +export const StarIcon: FeatherIconComponent; +export const StopCircleIcon: FeatherIconComponent; +export const SunIcon: FeatherIconComponent; +export const SunriseIcon: FeatherIconComponent; +export const SunsetIcon: FeatherIconComponent; +export const TabletIcon: FeatherIconComponent; +export const TagIcon: FeatherIconComponent; +export const TargetIcon: FeatherIconComponent; +export const TerminalIcon: FeatherIconComponent; +export const ThermometerIcon: FeatherIconComponent; +export const ThumbsDownIcon: FeatherIconComponent; +export const ThumbsUpIcon: FeatherIconComponent; +export const ToggleLeftIcon: FeatherIconComponent; +export const ToggleRightIcon: FeatherIconComponent; +export const ToolIcon: FeatherIconComponent; +export const Trash2Icon: FeatherIconComponent; +export const TrashIcon: FeatherIconComponent; +export const TrelloIcon: FeatherIconComponent; +export const TrendingDownIcon: FeatherIconComponent; +export const TrendingUpIcon: FeatherIconComponent; +export const TriangleIcon: FeatherIconComponent; +export const TruckIcon: FeatherIconComponent; +export const TvIcon: FeatherIconComponent; +export const TwitchIcon: FeatherIconComponent; +export const TwitterIcon: FeatherIconComponent; +export const TypeIcon: FeatherIconComponent; +export const UmbrellaIcon: FeatherIconComponent; +export const UnderlineIcon: FeatherIconComponent; +export const UnlockIcon: FeatherIconComponent; +export const UploadCloudIcon: FeatherIconComponent; +export const UploadIcon: FeatherIconComponent; +export const UserCheckIcon: FeatherIconComponent; +export const UserMinusIcon: FeatherIconComponent; +export const UserPlusIcon: FeatherIconComponent; +export const UserXIcon: FeatherIconComponent; +export const UserIcon: FeatherIconComponent; +export const UsersIcon: FeatherIconComponent; +export const VideoOffIcon: FeatherIconComponent; +export const VideoIcon: FeatherIconComponent; +export const VoicemailIcon: FeatherIconComponent; +export const Volume1Icon: FeatherIconComponent; +export const Volume2Icon: FeatherIconComponent; +export const VolumeXIcon: FeatherIconComponent; +export const VolumeIcon: FeatherIconComponent; +export const WatchIcon: FeatherIconComponent; +export const WifiOffIcon: FeatherIconComponent; +export const WifiIcon: FeatherIconComponent; +export const WindIcon: FeatherIconComponent; +export const XCircleIcon: FeatherIconComponent; +export const XOctagonIcon: FeatherIconComponent; +export const XSquareIcon: FeatherIconComponent; +export const XIcon: FeatherIconComponent; +export const YoutubeIcon: FeatherIconComponent; +export const ZapOffIcon: FeatherIconComponent; +export const ZapIcon: FeatherIconComponent; +export const ZoomInIcon: FeatherIconComponent; +export const ZoomOutIcon: FeatherIconComponent; diff --git a/types/vue-feather-icons/package.json b/types/vue-feather-icons/package.json new file mode 100644 index 0000000000..faefc1b2f7 --- /dev/null +++ b/types/vue-feather-icons/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "vue": ">=2.0.0" + } +} diff --git a/types/vue-feather-icons/tsconfig.json b/types/vue-feather-icons/tsconfig.json new file mode 100644 index 0000000000..ea56eb01f9 --- /dev/null +++ b/types/vue-feather-icons/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "DOM", + "ES2017.Object" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "vue-feather-icons-tests.ts" + ] +} diff --git a/types/vue-feather-icons/tslint.json b/types/vue-feather-icons/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/vue-feather-icons/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/vue-feather-icons/vue-feather-icons-tests.ts b/types/vue-feather-icons/vue-feather-icons-tests.ts new file mode 100644 index 0000000000..0c561d9561 --- /dev/null +++ b/types/vue-feather-icons/vue-feather-icons-tests.ts @@ -0,0 +1,6 @@ +import Vue from 'vue'; +import * as icons from 'vue-feather-icons'; + +Object.entries(icons).forEach(([k, v]) => { + Vue.component(k, v); +});