Premium support for our pure JavaScript UI components


Post by pmiklashevich »

Hello team! I cannot use GridConfig as a type because there is no stripeFeature in it. Since frameworks use nameFeature notation, it would be nice to have all features listed in the GridConfig typings. Same for scheduler and schedulerpro. Thanks!

Testcase:

import { GridConfig, ColumnConfig } from '@bryntum/schedulerpro'
import GroupStore from '@/components/bryntum/stores/GroupStore'

const columns: Partial<ColumnConfig>[] = [
  { text: 'Groups', field: 'title' },
]

const GroupGridConfig: Partial<GridConfig> = {
  store: GroupStore,
  rowHeight: 20,
  columns,
  // region Features
  stripeFeature: true,
  // endregion
}

export { GroupGridConfig }

Error:

Object literal may only specify known properties, and 'stripeFeature' does not exist in type 'Partial<GridConfig>'.
Screen Shot 2022-08-07 at 15.45.38.png
Screen Shot 2022-08-07 at 15.45.38.png (298.42 KiB) Viewed 91 times

P.S. I would recommend you to update your framework demos to start using types. That will help you to reveal such issues.

Pavlo Miklashevych
Sr. Frontend Developer


Post by alex.l »

Hi Pavel,
Thanks for the report, here is a ticket https://github.com/bryntum/support/issues/5020

All the best,
Alex


Post Reply