mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added feather-icons (#25509)
* added feather-icons * added strictfunctiontypes * added intercom-client
This commit is contained in:
parent
11c45b47fd
commit
73a7a2d99f
7
types/feather-icons/feather-icons-tests.ts
Normal file
7
types/feather-icons/feather-icons-tests.ts
Normal 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
22
types/feather-icons/index.d.ts
vendored
Normal 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;
|
||||
};
|
||||
};
|
||||
16
types/feather-icons/tsconfig.json
Normal file
16
types/feather-icons/tsconfig.json
Normal 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"]
|
||||
}
|
||||
1
types/feather-icons/tslint.json
Normal file
1
types/feather-icons/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user