mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Add 'react-bytesize-icons' package (#12150)
* Add 'react-bytesize-icons' package * Do not use 'import' in augumented module declaration * Remove non-module namespace
This commit is contained in:
committed by
Masahiro Wakame
parent
b424d28ab1
commit
dbd5fbc59a
@@ -0,0 +1,10 @@
|
||||
/// <reference path="../react/react-dom.d.ts" />
|
||||
/// <reference path="./react-bytesize-icons.d.ts" />
|
||||
|
||||
import * as React from 'react';
|
||||
import {render} from 'react-dom';
|
||||
import {Activity, External, Export} from 'react-bytesize-icons';
|
||||
|
||||
render(<Activity/>, document.getElementById('test'));
|
||||
render(<External width={42} color="blue"/>, document.getElementById('test'));
|
||||
render(<Export width={42} height={21} strokeWidth="10%" strokeLinejoin="bevel" strokeLinecap="butt" color="blue"/>, document.getElementById('test'));
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
// Type definitions for react-bytesize-icons 0.6.4
|
||||
// Project: https://github.com/abdelhai/react-bytesize-icons
|
||||
// Definitions by: rhysd <https://rhysd.github.io>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
|
||||
declare module "react-bytesize-icons" {
|
||||
export type StrokeLinejoin = "round" | "bevel" | "miter" | "inherit";
|
||||
export type StrokeLinecap = "round" | "butt" | "square" | "inherit";
|
||||
interface BytesizeIconsProps extends __React.Props<any> {
|
||||
width?: number;
|
||||
height?: number;
|
||||
strokeWidth?: string;
|
||||
strokeLinejoin?: StrokeLinejoin;
|
||||
strokeLinecap?: StrokeLinecap;
|
||||
color?: string;
|
||||
}
|
||||
export class BytesizeIconComponent extends __React.Component<BytesizeIconsProps, {}> {}
|
||||
|
||||
export class Activity extends BytesizeIconComponent {}
|
||||
export class Alert extends BytesizeIconComponent {}
|
||||
export class Archive extends BytesizeIconComponent {}
|
||||
export class ArrowBottom extends BytesizeIconComponent {}
|
||||
export class ArrowLeft extends BytesizeIconComponent {}
|
||||
export class ArrowRight extends BytesizeIconComponent {}
|
||||
export class ArrowTop extends BytesizeIconComponent {}
|
||||
export class Backwards extends BytesizeIconComponent {}
|
||||
export class Ban extends BytesizeIconComponent {}
|
||||
export class Bell extends BytesizeIconComponent {}
|
||||
export class Bookmark extends BytesizeIconComponent {}
|
||||
export class Camera extends BytesizeIconComponent {}
|
||||
export class CaretBottom extends BytesizeIconComponent {}
|
||||
export class CaretLeft extends BytesizeIconComponent {}
|
||||
export class CaretRight extends BytesizeIconComponent {}
|
||||
export class CaretTop extends BytesizeIconComponent {}
|
||||
export class Cart extends BytesizeIconComponent {}
|
||||
export class Checkmark extends BytesizeIconComponent {}
|
||||
export class ChevronBottom extends BytesizeIconComponent {}
|
||||
export class ChevronLeft extends BytesizeIconComponent {}
|
||||
export class ChevronRight extends BytesizeIconComponent {}
|
||||
export class ChevronTop extends BytesizeIconComponent {}
|
||||
export class Clock extends BytesizeIconComponent {}
|
||||
export class Close extends BytesizeIconComponent {}
|
||||
export class Code extends BytesizeIconComponent {}
|
||||
export class Compose extends BytesizeIconComponent {}
|
||||
export class Creditcard extends BytesizeIconComponent {}
|
||||
export class Download extends BytesizeIconComponent {}
|
||||
export class Send extends BytesizeIconComponent {}
|
||||
export class Edit extends BytesizeIconComponent {}
|
||||
export class Eject extends BytesizeIconComponent {}
|
||||
export class EllipsisHorizontal extends BytesizeIconComponent {}
|
||||
export class EllipsisVertical extends BytesizeIconComponent {}
|
||||
export class End extends BytesizeIconComponent {}
|
||||
export class Export extends BytesizeIconComponent {}
|
||||
export class External extends BytesizeIconComponent {}
|
||||
export class Book extends BytesizeIconComponent {}
|
||||
export class Calendar extends BytesizeIconComponent {}
|
||||
export class Print extends BytesizeIconComponent {}
|
||||
export class Eye extends BytesizeIconComponent {}
|
||||
export class File extends BytesizeIconComponent {}
|
||||
export class Fire extends BytesizeIconComponent {}
|
||||
export class Flag extends BytesizeIconComponent {}
|
||||
export class FolderOpen extends BytesizeIconComponent {}
|
||||
export class Folder extends BytesizeIconComponent {}
|
||||
export class Forwards extends BytesizeIconComponent {}
|
||||
export class Gift extends BytesizeIconComponent {}
|
||||
export class Github extends BytesizeIconComponent {}
|
||||
export class Heart extends BytesizeIconComponent {}
|
||||
export class Home extends BytesizeIconComponent {}
|
||||
export class Import extends BytesizeIconComponent {}
|
||||
export class Inbox extends BytesizeIconComponent {}
|
||||
export class Info extends BytesizeIconComponent {}
|
||||
export class Lightning extends BytesizeIconComponent {}
|
||||
export class Link extends BytesizeIconComponent {}
|
||||
export class Location extends BytesizeIconComponent {}
|
||||
export class Lock extends BytesizeIconComponent {}
|
||||
export class Mail extends BytesizeIconComponent {}
|
||||
export class Menu extends BytesizeIconComponent {}
|
||||
export class Message extends BytesizeIconComponent {}
|
||||
export class Music extends BytesizeIconComponent {}
|
||||
export class Mute extends BytesizeIconComponent {}
|
||||
export class Options extends BytesizeIconComponent {}
|
||||
export class Paperclip extends BytesizeIconComponent {}
|
||||
export class Pause extends BytesizeIconComponent {}
|
||||
export class Photo extends BytesizeIconComponent {}
|
||||
export class Plus extends BytesizeIconComponent {}
|
||||
export class Minus extends BytesizeIconComponent {}
|
||||
export class Play extends BytesizeIconComponent {}
|
||||
export class Portfolio extends BytesizeIconComponent {}
|
||||
export class Reload extends BytesizeIconComponent {}
|
||||
export class Reply extends BytesizeIconComponent {}
|
||||
export class Search extends BytesizeIconComponent {}
|
||||
export class Settings extends BytesizeIconComponent {}
|
||||
export class Star extends BytesizeIconComponent {}
|
||||
export class Start extends BytesizeIconComponent {}
|
||||
export class Tag extends BytesizeIconComponent {}
|
||||
export class Trash extends BytesizeIconComponent {}
|
||||
export class Twitter extends BytesizeIconComponent {}
|
||||
export class Unlock extends BytesizeIconComponent {}
|
||||
export class Upload extends BytesizeIconComponent {}
|
||||
export class User extends BytesizeIconComponent {}
|
||||
export class Video extends BytesizeIconComponent {}
|
||||
export class Volume extends BytesizeIconComponent {}
|
||||
export class Work extends BytesizeIconComponent {}
|
||||
}
|
||||
Reference in New Issue
Block a user