fix type err
This commit is contained in:
parent
92ece90f0d
commit
9c3d9e678b
1 changed files with 4 additions and 1 deletions
|
|
@ -4,7 +4,10 @@ import { useContext } from "react";
|
|||
import { useAuth } from "../../../context/Auth";
|
||||
import { IdeMessengerContext } from "../../../context/IdeMessenger";
|
||||
|
||||
type SectionKey = Exclude<keyof ConfigYaml, "name" | "version" | "schema">;
|
||||
type SectionKey = Exclude<
|
||||
keyof ConfigYaml,
|
||||
"name" | "version" | "schema" | "metadata"
|
||||
>;
|
||||
|
||||
interface EditBlockButtonProps<T extends SectionKey> {
|
||||
blockType: T;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue