refactor[CustomNodes]: Add types to functions that didnt have it

This commit is contained in:
Igor Carvalho 2023-07-20 17:12:50 -03:00
commit 84b2fb8aae
4 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,7 @@ export default function ParameterComponent({
required = false,
optionalHandle = null,
info = "",
}: ParameterComponentType) {
}: ParameterComponentType): JSX.Element {
const ref = useRef(null);
const refHtml = useRef(null);
const refNumberComponents = useRef(0);

View file

@ -20,7 +20,7 @@ export default function GenericNode({
}: {
data: NodeDataType;
selected: boolean;
}) {
}): JSX.Element {
const { setErrorData } = useContext(alertContext);
const showError = useRef(true);
const { types, deleteNode } = useContext(typesContext);

View file

@ -8,7 +8,6 @@ import { classNames } from "../../../../utils/utils";
import { nodeToolbarType } from "../../../../types/components";
const NodeToolbarComponent = (props): JSX.Element => {
console.log(props);
const [nodeLength, setNodeLength] = useState(
Object.keys(props.data.node.template).filter(
(t) =>

View file

@ -262,7 +262,6 @@ export function varHighlightHTML({ name }: IVarHighlightType): string {
};
export function buildTweakObject(tweak: tweakType[]): string {
console.log(tweak)
tweak.forEach((el) => {
Object.keys(el).forEach((key) => {
for (let kp in el[key]) {