justice40-tool icon indicating copy to clipboard operation
justice40-tool copied to clipboard

Investigate TS warnings in various client side files

Open vim-usds opened this issue 2 years ago • 0 comments

AreaDetail.tsx

  • line 866
Type '{ id: string; headingLevel: string; title: Element; content: Element; expanded: boolean; }[]' is not assignable to type 'AccordionItemProps[]'.
  Type '{ id: string; headingLevel: string; title: JSX.Element; content: JSX.Element; expanded: boolean; }' is not assignable to type 'AccordionItemProps'.
    Types of property 'headingLevel' are incompatible.
      Type 'string' is not assignable to type 'HeadingLevel'.ts(2322)
Accordion.d.ts(15, 5): The expected type comes from property 'items' which is declared here on type 'IntrinsicAttributes & AccordionProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElem

Categories.tsx

Property 'THEN' is missing in type '{ METHODOLOGY: JSX.Element; TITLE: JSX.Element; IF: JSX.Element; AND: JSX.Element; }' but required in type '{ TITLE: Element; IF: Element; AND: Element; THEN: Element; }'.ts(2741)
CategoryCard.tsx(10, 9): 'THEN' is declared here.
CategoryCard.tsx(6, 5): The expected type comes from property 'categoryInfo' which is declared here on type 'IntrinsicAttributes & ICategoryInterface'

DatasetCard.tsx DatasetCardContainer/index.tsx Language.tsx LayerSelector.tsx MapSearch.tsx PublicEvent.tsx TractDemographics.tsx J40Map.tsx data/copy/publicEngage.tsx data/constants.tsx data/getOSBaseMap.tsx data/mapStyle.tsx pages/public-engagement.tsx

vim-usds avatar Sep 09 '22 23:09 vim-usds