Skip to content

Commit

Permalink
Merge branch 'main' into banner_lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Aheichyk committed Jul 19, 2023
2 parents 0b5a32d + 59927a8 commit 220c551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@matrix-org/react-sdk-module-api",
"version": "0.0.5",
"version": "1.0.0",
"description": "Module API surface for matrix-react-sdk",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/ModuleApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
import React from "react";

import { PlainSubstitution, TranslationStringsObject } from "./types/translations";
import { DialogProps } from "./components/DialogContent";
import { DialogContent, DialogProps } from "./components/DialogContent";
import { AccountAuthInfo } from "./types/AccountAuthInfo";

/**
Expand Down Expand Up @@ -52,7 +52,7 @@ export interface ModuleApi {
* @returns Whether the user submitted the dialog or closed it, and the model returned by the
* dialog component if submitted.
*/
openDialog<M extends object, P extends DialogProps = DialogProps, C extends React.Component = React.Component>(
openDialog<M extends object, P extends DialogProps = DialogProps, C extends DialogContent<P> = DialogContent<P>>(
title: string,
body: (props: P, ref: React.RefObject<C>) => React.ReactNode,
props?: Omit<P, keyof DialogProps>,
Expand Down

0 comments on commit 220c551

Please sign in to comment.