Michael Telatynski
61a63e47f4
Comply with noImplicitAny ( #9940 )
...
* Stash noImplicitAny work
* Stash
* Fix imports
* Iterate
* Fix tests
* Delint
* Fix tests
2023-02-13 11:39:16 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Michael Telatynski
8c0d202df4
Enable tsc alwaysStrict, strictBindCallApply, noImplicitThis ( #9600 )
...
* Enable tsc alwaysStrict
* Enable tsc strictBindCallApply
* Enable tsc noImplicitThis
* Add d.ts
* Improve types
* Add ?
* Increase coverage
* Improve coverage
2022-11-21 11:24:59 +00:00
Michael Weimann
d1237b2c98
Remove e2e test exclude from tsconfig ( #9234 )
2022-09-02 10:24:07 +02:00
Michael Telatynski
e11b0cef47
Add static analysis for tsc --strict ( #9212 )
...
* Add static analysis for tsc --strict
* Make tsconfig legal
* Make tsconfig more legal
* Update static_analysis.yaml
* Test strict mode check
* Revert "Test strict mode check"
This reverts commit 879df9879738fabfa02466ce07634a0f5c132311.
2022-08-24 11:08:26 +01:00
Travis Ralston
15b84bd9a6
Step 2: Remove the decorator
2022-03-28 14:02:31 -06:00
Kerry
a8d65ab5c5
Include /test in tsc config, fix rest of issues ( #8119 )
...
* fix ts issue in PosthogAnalytics test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix remaining ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tsconfig change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use sdkconfig patch instead of put
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-23 10:27:28 +00:00
Kerry
abc225d3c6
Unit test tsc fixes part 15 ( #8104 )
...
* fix ts issues in MPollBody test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in PollCreateDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix settings components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix DateSeparator
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix loosies
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-22 11:32:35 +01:00
Kerry
026ca1ab64
Fix tsc issues in right_panel and room component tests ( #8078 )
...
* fix ts issues in SendMessageComposer-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove empty file
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tsc issues in MessageComposerbUttons-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix the rest
Signed-off-by: Kerry Archibald <kerrya@element.io>
* bad autoformatter
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tsc fixes for test/components/views/right_panel
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-21 10:03:03 +01:00
Kerry
da097d42ef
fix ts issues in SendMessageComposer-test ( #8077 )
...
* fix ts issues in SendMessageComposer-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove empty file
Signed-off-by: Kerry Archibald <kerrya@element.io>
* better event type for m.room.message
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-18 10:07:33 +00:00
Kerry
bc8fdac491
fix more type issues in unit tests ( #8053 )
...
* fix ts issues in test/components/structures
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in test/components/views/context_menus
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-15 10:30:48 +01:00
Kerry
df6c53ff41
include /test/stores in tsconfig ( #8026 )
...
* fix space store emits
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix spacestore-test imports
* fix export-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* include test/utils to tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix types in SpaceStore-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in rest of test/stores
Signed-off-by: Kerry Archibald <kerrya@element.io>
* include test/stores in tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-11 17:03:33 +01:00
Kerry
9082e07ff4
include test/utils in tsconfig ( #8024 )
...
* fix export-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* include test/utils to tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-10 18:15:31 +00:00
Kerry
2ab8b46ba3
include test/test-utils in tsconfig ( #8000 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type wait for update
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add tests/test-utils to tsconfig
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix wrapper type
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-09 14:23:58 +01:00
J. Ryan Stinnett
65691202f7
Add lint for unused locals ( #8007 )
2022-03-09 12:05:16 +00:00
Michael Telatynski
3f4b5df574
Fix html exporting and improve output size ( #7312 )
2021-12-09 08:51:05 +00:00
Germain Souquet
18eb00a70f
Change tsconfig to autodiscover all @types packages rather setting them explicitely
2021-08-06 17:03:12 +02:00
James Salter
c66d0017de
Patch posthog's type definitions using patch-package
...
Remove definitions for sentry and rrweb-snapshot
2021-08-03 11:59:54 +01:00
James Salter
dc7aad1abf
Revert "Revert "Add support for Posthog Analytics under a labs flag""
...
This reverts commit c5ea253181
.
2021-08-03 11:55:02 +01:00
James Salter
c5ea253181
Revert "Add support for Posthog Analytics under a labs flag"
2021-08-03 07:30:02 +01:00
James Salter
e4722ee457
Override posthog type definitions to point to a locally fixed type definition file
...
Posthog's type definitions refer to types in transitive dependencies we don't want to include.
Clone posthog.d.ts locally, remove the offending types from it, and provide an overriding mapping in tsconfig.
If this proves annoying to maintain, posthog.d.ts could just be an empty file.
2021-07-28 17:14:36 +01:00
Michael Telatynski
2caee2eadd
TypeScript: enable es2019 lib for newer definitions
2020-08-17 18:20:57 +01:00
Travis Ralston
1467191a5d
Update the CSS transition for breadcrumbs
...
The actual transition length might need adjusting, but this is fairly close to what was requested.
2020-06-09 15:06:54 -06:00
Travis Ralston
fa83df4bde
Convert dispatcher to TypeScript and replace async usage with new class
...
Due to TypeScript and flux's types being annoying and highly typesafe, we need an AsyncActionPayload which intentionally doesn't use the 'action' property. This looks a bit awkward, though for the rare cases we do actually fire async actions it should be fine enough.
The call signature changes slightly for async events, therefore this commit also updates its usages for async events.
The `fire()` function is to be used in a future commit.
Remove biased comment
2020-05-13 21:07:50 -06:00
Michael Telatynski
bf891c85e8
Enable esModuleInterop and iterate PR
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-21 10:01:05 +01:00
Michael Telatynski
fced4ea51e
Convert autocomplete stuff to TypeScript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-20 19:00:54 +01:00
Travis Ralston
b825be281e
Declare jsx in tsconfig for IDEs
2020-03-12 13:36:02 -06:00
Travis Ralston
5a5e7171bc
Also tsconfig
2020-03-11 18:17:35 -06:00
Travis Ralston
7dd7417f12
Enable support for TypeScript in components
...
Includes: compilation, translations, IDE support (use .tsx not .ts), typings, and other build tools.
TypeScript component have to import PropTypes and React with `import * as React from 'react';`
2020-03-11 18:03:43 -06:00
Travis Ralston
c02beb9ba3
Copy typescript configs from js-sdk
2019-12-12 14:35:28 -07:00