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

Update/SOF-7291 add enum #72

Merged
merged 13 commits into from Apr 14, 2024
Merged

Update/SOF-7291 add enum #72

merged 13 commits into from Apr 14, 2024

Conversation

VsevolodX
Copy link
Contributor

No description provided.

class IframeToFromHostMessageHandler {
private handlers: HandlersMap = { "get-data": [], "set-data": [], info: [] };
private handlers: HandlersMap = {
[ActionEnum.GetData]: [],
Copy link
Member

Choose a reason for hiding this comment

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

Let's use lowercase first letter and use enums from the IframeMessageSchema

@@ -1,6 +1,11 @@
import { Action as ActionEnum, Type as TypeEnum, } from "@mat3ra/esse/dist/js/types";
Copy link
Member

Choose a reason for hiding this comment

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

This is the issue

Copy link
Member

@k0stik k0stik Apr 8, 2024

Choose a reason for hiding this comment

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

You can not import *.ts in *.js file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But this is dist that was generated

Copy link
Member

Choose a reason for hiding this comment

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

Probably this thing expects us to convert types.ts to types.js as well

@timurbazhirov timurbazhirov merged commit ded5dad into main Apr 14, 2024
2 checks passed
@timurbazhirov timurbazhirov deleted the update/SOF-7291-add-enum branch April 14, 2024 21:31
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.

None yet

3 participants