Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 220c551

Browse files
author
Mikhail Aheichyk
committed
Merge branch 'main' into banner_lifecycle
2 parents 0b5a32d + 59927a8 commit 220c551

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@matrix-org/react-sdk-module-api",
3-
"version": "0.0.5",
3+
"version": "1.0.0",
44
"description": "Module API surface for matrix-react-sdk",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/ModuleApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
import React from "react";
1818

1919
import { PlainSubstitution, TranslationStringsObject } from "./types/translations";
20-
import { DialogProps } from "./components/DialogContent";
20+
import { DialogContent, DialogProps } from "./components/DialogContent";
2121
import { AccountAuthInfo } from "./types/AccountAuthInfo";
2222

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

0 commit comments

Comments
 (0)