Added feather-icons (#25509)

* added feather-icons

* added strictfunctiontypes

* added intercom-client
This commit is contained in:
Jinesh Shah 2018-05-03 11:28:43 -04:00 committed by Andy
parent 11c45b47fd
commit 73a7a2d99f
4 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import * as feather from "feather-icons";
feather.replace(); // $ExpectType void
feather.icons[""].toSvg(); // $ExpectType string
feather.icons[""].name; // $ExpectType string
feather.icons[""].contents; // $ExpectType string
feather.icons[""].tags; // $ExpectType string[]

22
types/feather-icons/index.d.ts vendored Normal file
View File

@ -0,0 +1,22 @@
// Type definitions for feather-icons 4.7
// Project: https://github.com/feathericons/feather#readme
// Definitions by: Jinesh Shah <https://github.com/jineshshah36>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace feather;
export interface FeatherAttributes {
[key: string]: string | number;
}
export function replace(options?: FeatherAttributes): void;
export const icons: {
[key: string]: {
name: string;
contents: string;
tags: string[];
attrs: FeatherAttributes;
toSvg: (options?: FeatherAttributes) => string;
};
};

View File

@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true
},
"files": ["index.d.ts", "feather-icons-tests.ts"]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }