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

generics #31

Open
andrepolischuk opened this issue Apr 16, 2024 · 0 comments
Open

generics #31

andrepolischuk opened this issue Apr 16, 2024 · 0 comments

Comments

@andrepolischuk
Copy link
Member

Mediator<MediatorConfig, MediatorProps>
  MediatorUserInterface
    buildWidget
    initializeDOMElements
    ...EmitterUserInterface
    ...MediatorProps
  MediatorIFrameInterface
    buildWidget
    initializeDOMElements
    ...EmitterUserInterface
    ...MediatorProps
    ...ReturnType<MediatorConfig['externalizeAsProvider']>

Widget<WidgetConfig, WidgetProps, WidgetParams>
  WidgetUserInterface
    params: WidgetParams
    destroy
    ...EmitterUserInterface
    ...IFrameConsumerUserInterface
    ...WidgetProps
    ...ReturnType<WidgetConfig['externalize']>
  WidgetIFrameInterface
    url
    mediator: MediatorIFrameInterface
    params: WidgetParams
    destroy
    subscribeVisibleAreaChange
    getVisibleArea
    scrollTo
    resize
    ...EmitterIFrameInterface
    ...WidgetProps
    ...ReturnType<WidgetConfig['externalizeAsProvider']>

IFrameProviderFacade
  resize
  setSize
  ...WidgetIFrameInterface

IFrameConsumer<IFrameConsumerConfig, IFrameConsumerProps>
  IFrameConsumerUserInterface
    ...IFrameConsumerProps
    ...ReturnType<IFrameConsumerConfig['externalize']>
  IFrameConsumerWidgetInterface
    initialize
    externalizedProps: IFrameConsumerUserInterface
    getSize
    watchSize
    resize
    ...IFrameConsumerProps
    ...ReturnType<IFrameConsumerConfig['externalizeAsConsumer']>

IFrameConsumerFacade
  ...IFrameConsumerWidgetInterface
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

No branches or pull requests

1 participant