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

feat(ui5-message-strip): convert to Typescript #6248

Merged
merged 6 commits into from
Jan 9, 2023
Merged

Conversation

MapTo0
Copy link
Member

@MapTo0 MapTo0 commented Jan 5, 2023

MessageStrip component migrated to TS.

Related to: #6080 #4337

@MapTo0 MapTo0 requested review from vladitasev and nnaydenow January 5, 2023 15:52
packages/main/src/MessageStrip.ts Outdated Show resolved Hide resolved
packages/main/src/MessageStrip.ts Outdated Show resolved Hide resolved

type DesignTypeAnnouncemnt = Record<MessageStripDesign, string>;

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

this jsdoc comment seems to be redundant since metadata is missing.

}

_closeClick() {
this.fireEvent("close", {});
Copy link
Contributor

Choose a reason for hiding this comment

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

this empty object is redundant

import event from "@ui5/webcomponents-base/dist/decorators/event.js";
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
import languageAware from "@ui5/webcomponents-base/dist/decorators/languageAware.js";
import { ClassMap } from "@ui5/webcomponents-base/dist/types.js";
Copy link
Contributor

Choose a reason for hiding this comment

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

add type

Copy link
Contributor

@nnaydenow nnaydenow left a comment

Choose a reason for hiding this comment

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

It looks good to me. @ilhan007 @vladitasev could you check it too?

@MapTo0 MapTo0 requested a review from ilhan007 January 9, 2023 08:51
@ilhan007 ilhan007 merged commit 0325626 into main Jan 9, 2023
@ilhan007 ilhan007 deleted the msg-strip-typescript branch January 9, 2023 14:52
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.

3 participants