Commit Graph

15 Commits

Author SHA1 Message Date
Alexander Skvortsov
a595665bfb
fix: Assorted Typing Fixes (#3348)
With all the commits below, we resolve all outstanding typing issues in the repo, and CI jobs run green.

* fix: Convert DashboardPage and DashboardWidget to TypeScript

* fix: fix type errors in package manager ext

* fix: Convert Post component to TypeScript

* fix: avatar typings should accept null user

* fix: convert Notification component to TypeScript

* fix: properly use `typeof` in ForumApplication

* feat: make Notification content attr generic

* chore: format Notification component

* fix: Convert DiscussionRenamedNotification to TypeScript

* fix(pusher) move shims to a location where they get applied

* fix(pusher): fix some typing errors

* fix(akismet): fix some typing issues

* chore: update core dist typings

* chore(pusher): format

* fix: anchorScroll should accept string selectors

* fix: more accurately represent ApiQueryParamsPlural

* fix: convert PostStreamState to TypeScript

* chore(core): rebuild typings

* feat: allow extending app.routes

* fix: more flexible typings for highlight.ts

* fix: use primitive `number` type for Discussion typings

* fix: convert DiscussionListItem to TypeScript

* chore: rebuild core typings

* fix: final pusher type fixes

* feat: start tags TypeScript conversion

* fix: require-dev tags in pusher for CI TypeScript purposes.

* chore(core): format

* chore(tags): build dist typings

* feat(pusher): use dist types from tags.

* feat: convert flags to TypeScript

* chore(flags): generate dist typings

* fix(akismet): last type errors

* chore: update .yarn-integrity

* chore: partially run flarum-cli audit infra --fix

The tsconfig changes from that command are ignored, since we don't yet support "replacable sections" that would let us add custom config.

* chore: use type imports

* fix: broader gitattributes

* chore: run flarum-cli audit infra --monorepo --fix

* feat: make `app.data` typings extensible

* chore(core): format

* chore: boost tags TypeScript coverage

* fix(tags): further increase type coverage.
2022-03-23 11:43:14 -04:00
David Wheatley
628019eddc v1.0.2 2021-09-10 19:16:19 +01:00
David Wheatley
ad02f0845d Add support for Array.flat() as per core polyfill 2021-09-10 19:08:58 +01:00
David Wheatley
5939928f12 Bump to 1.0.1 2021-08-15 21:27:33 +02:00
David Wheatley
a8e49b28d8 Add missing throttle-debounce types dependency 2021-08-15 21:22:45 +02:00
David Wheatley
81eb4804e5 Add configuration for global typings (#2)
Support for https://github.com/flarum/core/pull/2992
2021-08-15 20:01:53 +01:00
David Wheatley
6040aa0da9 Add support for .finally in promises (#3)
See: https://stackoverflow.com/a/54746036/11091039

We use `Promise.finally` in core, but the `tsconfig.json` doesn't list it as supported.
2021-07-30 20:26:13 +01:00
David Wheatley
91d4c63090 Various grammatical changes 2021-07-09 08:56:10 +01:00
David Wheatley
f4807ada6a q 2021-07-09 08:55:14 +01:00
David Wheatley
818ae1c8b2 v1.0.0 2021-05-29 14:09:12 +01:00
David Wheatley
f1635cde13 Add support for Flarum typings in tsconfig 2021-05-27 22:37:32 +01:00
David Wheatley
df4b5969e3 Add missing typing packages as dependencies
These are required for core's global packages shim to work.
2021-05-20 22:51:33 +01:00
David Wheatley
47f28b5681 Add MIT license
Matches other Flarum repos
2021-05-15 00:53:49 +01:00
David Wheatley
a9184a1c2e Fix base tsconfig typo 2021-05-12 01:03:52 +01:00
David Wheatley
36f546aefa Initial commit 2021-05-12 00:37:38 +01:00