Commit Graph

26 Commits

Author SHA1 Message Date
Maarten Rijke
3f8be6b39f
[react-bootstrap-table] Update trClassName signature
The trClassName signature for the callback uses ReadonlyArray<any> to type the row, but it should be any as its just one row that is passed, not an array.
2017-12-01 15:45:30 +01:00
Janeene Beeforth
2fd2214dcc Make requested changes.
I still don't understand why the requested change is beneficial. Local testing shows that using the default "any" type for the generics results in all typechecking of parameters/outputs based on the generic type being disabled by the change.
2017-11-07 00:41:59 +11:00
Janeene Beeforth
8c3f5307ce Improve generics further. 2017-10-31 21:00:11 +11:00
Janeene Beeforth
5b29f887df Updates based on review feedback.
* Remove Row/RowKey/Cell
* Use generics where they provide useful type safety
2017-10-31 18:26:55 +11:00
Janeene Beeforth
5846c7a080 Update to react-bootstrap-table version 4.0.6
* Add v2 directory with the previous 2.8 types.
* Updated onCellEdit test to match library functionality.
  The onCellEdit function was altered in version 2.4.3 to require returning
  the final cell value from the function. This permits altering the value
  before it gets saved.
* Many options were missing, or their values were out of date.
* Add a lot of new tests based on example code in react-bootstrap-table.
* Remove the rule overrides in tslint for version 4.0.6
* Remove newly-forbidden @type & @memberof JSDoc tags.
2017-10-25 21:31:31 +11:00
James Ah Yong
3d91b9219a [react-bootstrap-table] Fix paginationShowsTotal type (fixes #20684) (#20760)
* Update paginationShowsTotal type (fixes #20684)

* Forgot to surround definition with brackets.
2017-10-23 15:02:05 -07:00
Andy
72bc73d061 react-*: Fix lint (#20825) 2017-10-23 07:31:51 -07:00
Maarten Rijke
f72b298cc5 [react-bootstrap-table] csvFileName also accepts function returning string (#20352)
The csvFileName prop on the BootstrapTable component also accepts a function that returns a string.
2017-10-09 14:41:10 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andrey Kurdyumov
82ace18841 [react-bootstrap-table] Add thStyle, tdStyle, tdAttr properties to TableHeaderColumn (#19910)
* Add thStyle, tdStyle, tdAttr properties to TableHeaderColumn
Also style apply TSLint rules where it was fast to implement without introducing issues.

* Fix missed TSLint warnings
2017-09-26 11:40:20 -07:00
Benjamin Lichtman
edc90dc0c5 Merge pull request #19695 from mikeyGlitz/react-bootstrap-table/remote-expansion
React bootstrap table/remote expansion
2017-09-19 16:40:53 -07:00
Arthur Ozga
1e05bfe078 Merge pull request #19629 from Ogglas/patch-2
Added strictSearch to react-bootstrap-table
2017-09-14 15:26:08 -07:00
Michael Glitzos
d49daac9b6 Fixed errors from running tests. Travis CI should pass now 2017-09-13 13:11:16 +00:00
mikeyGlitz
c7cb14ca45 Updated test to reflect remote changes
Second class, remoteBool to test for remote is boolean
2017-09-12 09:47:47 -04:00
mikeyGlitz
271314f3ef Update to index.d.ts
Added change suggested by @pocesar
2017-09-12 09:45:14 -04:00
Oscar Andersson
f6e343a31b Added strictSearch 2017-09-08 11:12:06 +02:00
Akim Bassa
4258155e84 Add property 'version' to BootstrapTableProps 2017-09-08 10:12:47 +02:00
Nathan Shively-Sanders
589a8fe1d6 Merge pull request #19397 from UJosue10/master
Add missed function type for filterValue on TableHeaderColumn
2017-09-06 14:15:53 -07:00
Michael Glitzos
c510750a11 Updated definition of remote
Added additional properties to satisfy options for react-bootstrap-table v3.
2017-08-30 18:33:34 -04:00
Josué Us
2c963b4c5f Add missed function type for filterValue on TableHeaderColumn 2017-08-28 11:56:50 -06:00
Uwe Quitter
909d2e994d Update index.d.ts
In SelectRow interface type add an alternative type of number[] to the selected property. That resolves compiler errors if the key field of the row data is of type number.
2017-06-27 15:45:52 +02:00
Tanguy Krotoff
573083a518 Replace React.Component<(any|void|\{\}|null)> by React.Component
+ many manual adjustments
2017-06-21 09:48:37 +02:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff
eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Ian Ker-Seymer
582eb84a3c react-bootstrap-table: Make pageStartIndex of type number (#16706) 2017-06-02 07:53:00 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00