Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Convert /src to TS #6869

Merged
merged 14 commits into from
Sep 30, 2021
Merged

Convert /src to TS #6869

merged 14 commits into from
Sep 30, 2021

Conversation

SimonBrandner
Copy link
Contributor

@SimonBrandner SimonBrandner commented Sep 27, 2021

Type: task
Fixes element-hq/element-web#19133
Requires matrix-org/matrix-js-sdk#1954


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://6152aed2f9db149d411d2e10--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@github-actions github-actions bot added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Sep 27, 2021
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@SimonBrandner SimonBrandner force-pushed the task/src-ts branch 8 times, most recently from e17ad78 to 97ff0ec Compare September 27, 2021 16:37
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
src/Skinner.ts Show resolved Hide resolved
Skinner.reset();
}

export function getComponent(componentName) {
export function getComponent(componentName: string): any {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any because nothing seems to not cause any issues :(

@SimonBrandner SimonBrandner marked this pull request as ready for review September 27, 2021 16:43
@SimonBrandner SimonBrandner requested a review from a team as a code owner September 27, 2021 16:43
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise looks good - thank you!

src/IdentityAuthClient.tsx Outdated Show resolved Hide resolved
src/NodeAnimator.tsx Outdated Show resolved Hide resolved
GroupView: "group_view",
MyGroups: "my_groups",
};
enum PageType {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be able to put export default enum PageType on this line instead of later on where it'll get lost/forgotten.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sadly isn't a thing :( See microsoft/TypeScript#3320

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wtf typescript

src/Skinner.ts Show resolved Hide resolved
src/linkify-matrix.ts Outdated Show resolved Hide resolved
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@turt2live turt2live merged commit fe0a68b into matrix-org:develop Sep 30, 2021
@SimonBrandner SimonBrandner deleted the task/src-ts branch September 30, 2021 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert /src to TS
2 participants