diff --git a/types/react-fa/index.d.ts b/types/react-fa/index.d.ts index 98fb3840fa..357c3921f6 100644 --- a/types/react-fa/index.d.ts +++ b/types/react-fa/index.d.ts @@ -37,7 +37,15 @@ export const Icon: ComponentClass; export interface IconStackProps extends SizeOverrideHTMLProps { size?: IconSize; - children?: IconProps[]; + + // Does not work with TypeScript 2.3: + // Type '{ size: "lg"; children: Element[]; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes> & Reado...'. + // Type '{ size: "lg"; children: Element[]; }' is not assignable to type 'Readonly'. + // Types of property 'children' are incompatible. + // Type 'Element[]' is not assignable to type 'IconProps[]'. + // Type 'Element' is not assignable to type 'IconProps'. + // Property 'name' is missing in type 'Element'. + // children?: IconProps[]; } export type IconStack = Component;