mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: Fixed types for slash commands by inspecting generics
This commit is contained in:
parent
98b7a941f9
commit
b652d1a8f1
@ -317,7 +317,7 @@ const renderItems = () => {
|
|||||||
let popup: any | null = null;
|
let popup: any | null = null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
onStart: (props: { editor: Editor; clientRect: DOMRect }) => {
|
onStart: (props: { editor: Editor; clientRect?: (() => DOMRect | null) | null }) => {
|
||||||
component = new ReactRenderer(CommandList, {
|
component = new ReactRenderer(CommandList, {
|
||||||
props,
|
props,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
@ -335,7 +335,7 @@ const renderItems = () => {
|
|||||||
placement: "bottom-start",
|
placement: "bottom-start",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onUpdate: (props: { editor: Editor; clientRect: DOMRect }) => {
|
onUpdate: (props: { editor: Editor; clientRect?: (() => DOMRect | null) | null }) => {
|
||||||
component?.updateProps(props);
|
component?.updateProps(props);
|
||||||
|
|
||||||
popup &&
|
popup &&
|
||||||
|
Loading…
Reference in New Issue
Block a user