gylphs
Summary: Adding type declaration for glyphs Reviewed By: passy Differential Revision: D17096295 fbshipit-source-id: e8994e0c81c3668fa909479dbaea613ec2b86dc4
This commit is contained in:
committed by
Facebook Github Bot
parent
bc4fc12ea4
commit
9970c50daf
@@ -20,7 +20,7 @@ const ColoredIconBlack = styled('img')(({size}: {size: number}) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const ColoredIconCustom = styled('div')(
|
const ColoredIconCustom = styled('div')(
|
||||||
(props: {size: number; color: string; src: string}) => ({
|
(props: {size: number; color?: string; src: string}) => ({
|
||||||
height: props.size,
|
height: props.size,
|
||||||
verticalAlign: 'middle',
|
verticalAlign: 'middle',
|
||||||
width: props.size,
|
width: props.size,
|
||||||
|
|||||||
18
src/utils/icons.d.ts
vendored
Normal file
18
src/utils/icons.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* Copyright 2018-present Facebook.
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
* @format
|
||||||
|
*/
|
||||||
|
|
||||||
|
import {IconSize} from 'src/ui/components/Glyph';
|
||||||
|
|
||||||
|
declare function getIconURL(
|
||||||
|
name: string,
|
||||||
|
size?: IconSize,
|
||||||
|
density?: number,
|
||||||
|
): string;
|
||||||
|
|
||||||
|
declare const ICONS: {
|
||||||
|
[key: string]: Array<IconSize>;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user