Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timeout vs. number utils.ts #1091

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Fix timeout vs. number utils.ts #1091

merged 1 commit into from
Aug 17, 2023

Conversation

MartinKokesCz
Copy link
Contributor

Fix for this error during the build
[tsl] ERROR in /node_modules/ublaboo-datagrid/assets/utils.ts(130,3)
TS2322: Type 'Timeout' is not assignable to type 'number'.

During the build 
[tsl] ERROR in /node_modules/ublaboo-datagrid/assets/utils.ts(130,3)
      TS2322: Type 'Timeout' is not assignable to type 'number'.
@radimvaculik
Copy link
Member

@lilianalillyy Could you check it, please?

@lilianalillyy
Copy link
Contributor

lgtm, this is due to the node.js environment having a different return value for setTimeout than the browser environment, which at runtime doesn't matter (in this case at least) but typescript will scream depending on the build environment setup; this is a good fix for that, thank you!

@radimvaculik radimvaculik merged commit 2922ad7 into contributte:next Aug 17, 2023
3 checks passed
@radimvaculik
Copy link
Member

@MartinKokesCz Thanks for contributing. @lilianalillyy Thanks for code review 💪

@MartinKokesCz MartinKokesCz deleted the patch-1 branch August 18, 2023 07:11
paveljanda added a commit that referenced this pull request Mar 13, 2024
* PHP 8.0

* Translator: switch from ITranslator to Translator (#973)

* [7.x] Bootstrap 5 + PHP 8 + vanilla javascript (#1021)

* Bootstrap 5

* Bootstrap 5 (docs)

* Bootstrap 5

* form-control -> form-select

* Bump bootstrap-select for Bootstrap 5 support

* Removed `input-sm` from Bootstrap 3

See https://getbootstrap.com/docs/4.0/migration/#forms-1

* Bootstrap 5: When selectpicker, replace form-select classes with form-control and refresh it

* Hide `underline` also for `dropdown-item`. And merged into one CSS rule.

* Update the filterMultiSelect initialization

* Text-align: left -> start

Co-authored-by: Radim Vaculík <radim.vaculik@gmail.com>
Co-authored-by: Jaroslav Líbal <jaroslav.libal@neatous.cz>

* [7.x] phpstan-deprecation-rules (#1061)

* Fix sort

* Add method for setting custom Action href, v6.x (#853)

* [7.x] Nextras ORM 4 support, closes #984

* Fix ElasticsearchDataSource.php data source (#1041)

* Error: Typed property Ublaboo\DataGrid\InlineEdit\InlineEdit::$itemID must not be accessed before initialization

* composer: allow-plugins: php-http/discovery

* ItemDetailForm: $httpPost: Typed property must not be accessed...

* phpstan: revert  --memory-limit=4G

* NetteDatabaseSelectionHelper: Context -> Explorer, getSupplementalDriver -> getDriver

* Update README.md

* Templates: fix variables

* data-bs-toggle attribute for multiaction button (#1072)

* dependabot.yml (#1078)

* Allow nette/utils:4.0 (#1077)

* Add onColumnShow and onColumnHide event methods (#1076)

* Add onColumnShow and onColumnHide event methods

* Add native type array

* Removed duplicity

* Return value of BackedEnum when reading Doctrine entity property. (#1081)

* Return value of BackedEnum when reading array value (#1083)

* Added method to check if filter is on default values; Closes #1082 (#1084)

* ublaboo -> contributte (#1067) (#1075)

* Delete dependabot.yml

* Gitignore: remove compat.php

* Assets: rewrite to TS and plugin system

* Add missing phpdoc type (#1090)

* Add support for `nette/utils` version `4.0.0` (#1086)

* Add missing phpdoc type

---------

Co-authored-by: Dominik Harmim <harmim6@gmail.com>

* fix: resolution name for datagrid -> attribute instead of class

* Fix timeout utils.ts (#1091)

During the build 
[tsl] ERROR in /node_modules/ublaboo-datagrid/assets/utils.ts(130,3)
      TS2322: Type 'Timeout' is not assignable to type 'number'.

* Typo fixes in docs (#1088)

* Fixed typos in columns.md

* Fixed typos in actions.md

* Update data-source.md

* Fixed typos in export.md

* Fixed typos, missing/redundant words in filters.md

* Update columns.md

* Fixed typos group-action.md

* Fixed typo inline-edit.md

* Fixed missin comma localization.md

* Fixed typos row.md

* Add support for `nette/utils` version `4.0.0` (#1086)

* Update .docs/export.md

Co-authored-by: Radim Vaculík <radim.vaculik@gmail.com>

---------

Co-authored-by: Dominik Harmim <harmim6@gmail.com>
Co-authored-by: Radim Vaculík <radim.vaculik@gmail.com>

* Housekeep: Fix cs & phpstan issues (#1097)

* Fix: Github Actions: Coverage (#1098)

* Using data-datagrid-name="<name>" instead if data-datagrid-<name>

* Fixed CSS: change .datagrid selector to [data-datagrid-name]

* Fixed inline edit plugin

* phpstan fix

* Minor CSS changes for the next verison of datagrid

* Fix cs & phpstan

* Fix failing tests

* PHP 8.1 is new minimal version

* Fix phpstan

---------

Co-authored-by: Radim Vaculík <radim.vaculik@gmail.com>
Co-authored-by: Jaroslav Líbal <jaroslav.libal@neatous.cz>
Co-authored-by: Pavel Linhart <pavel.linhart@gmail.com>
Co-authored-by: Jan Bednář <honzaxp01@gmail.com>
Co-authored-by: emololftw <60448217+emololftw@users.noreply.github.com>
Co-authored-by: Vojtěch Kaizr <wojtishek@users.noreply.github.com>
Co-authored-by: jiriermis <46221089+jiriermis@users.noreply.github.com>
Co-authored-by: Martin Procházka <juniwalk@outlook.cz>
Co-authored-by: Mia Vališová (Liliana) <118116415+lilianalillyy@users.noreply.github.com>
Co-authored-by: Vít Kutný <vit@kutny.cz>
Co-authored-by: Dominik Harmim <harmim6@gmail.com>
Co-authored-by: Tomáš Mîčka <tomas.micka@logmanager.com>
Co-authored-by: Martin Kokeš <info@martinkokes.cz>
Co-authored-by: RYUcze <125459293+RYUcze@users.noreply.github.com>
Co-authored-by: Pavel Janda <me@paveljanda.com>
Co-authored-by: Kryštof Záhumenský <zahumensky.krystof@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants