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

Use TypeScript strict mode #1208

Merged
merged 5 commits into from
Mar 8, 2024
Merged

Use TypeScript strict mode #1208

merged 5 commits into from
Mar 8, 2024

Conversation

wch
Copy link
Collaborator

@wch wch commented Mar 8, 2024

This enables TypeScript's strict mode, and fixes some issues that it turned up.

I did not fix issues with the dataframe component, because there are many changes in #1198 that could conflict. I set the tsconfig.json file to exclude the dataframe/ directory so that this won't cause problems with CI. After this is merged to main, then main can be merged into the branch for #1198, and that exclusion can be removed there.

@wch wch requested a review from schloerke March 8, 2024 21:32
@wch
Copy link
Collaborator Author

wch commented Mar 8, 2024

I just pushed some more changes to tsconfig.json which were informed by this article: https://www.totaltypescript.com/tsconfig-cheat-sheet

@wch wch merged commit 446c8ac into main Mar 8, 2024
32 checks passed
@wch wch deleted the ts-strict branch March 8, 2024 23:35
schloerke added a commit that referenced this pull request Mar 15, 2024
* main:
  Add support for Shiny Express in Quarto Dashboards, take 2 (#1217)
  Force UTF-8 for Shiny Express on Windows (#1203)
  Typing fixes
  feat(card): Report full screen state as a Shiny input (#1215)
  Use TypeScript strict mode (#1208)
  Update author email
  test: Resolve testing comments (#1206)
  Fix URL
  Update badges
  Bump dev version to 0.8.1.9000 (#1202)
  chore(deps): Update bslib css (#1200)
  chore: no new features
  v0.8.1
schloerke added a commit to joesho112358/py-shiny that referenced this pull request Mar 23, 2024
* main: (24 commits)
  chore: Disable broken test on CI; Fix broken docs entries (posit-dev#1241)
  Add back missing session methods (posit-dev#1239)
  Add kitchensink tests for valuebox (posit-dev#1229)
  For Express, emit message if need to upgrade rsconnect-python (posit-dev#1233)
  feat: Editable data frame (posit-dev#1198)
  Add tests for shiny_mode comment detection
  fix(input_dark_mode): Allow users to customize `style` attribute (posit-dev#1207)
  chore(get_current_session): Return default session if current is explicitly None (posit-dev#1086)
  chore: use dev htmtlools (posit-dev#1228)
  feat(layout_columns): Use `sm` as the default `col_widths` breakpoint (posit-dev#1222)
  feat: ensure min/max height args on `value_box()` and column layouts (posit-dev#1223)
  fix(static_assets): Need the directory containing the `app.py`, not the file itself (posit-dev#1219)
  Update bslib and shiny dependencies (posit-dev#1221)
  Update docstring and give hint for mypy
  Add support for Shiny Express in Quarto Dashboards, take 2 (posit-dev#1217)
  Force UTF-8 for Shiny Express on Windows (posit-dev#1203)
  Typing fixes
  feat(card): Report full screen state as a Shiny input (posit-dev#1215)
  Use TypeScript strict mode (posit-dev#1208)
  Update author email
  ...
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant