Fix
Some checks failed
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2025-12-29 00:26:49 +01:00
parent cfdcae0892
commit 6778925a3a

View File

@@ -1,5 +1,5 @@
import { ClassDB, Node, type NodePathMap } from "godot"
import ReactReconciler from "react-reconciler"
import ReactReconciler, { type HostConfig } from "react-reconciler"
import { camelToSnake, hasProperty, snakeToPascal } from "./utils.js"
@@ -139,60 +139,77 @@ export const make = () => {
cancelTimeout: clearTimeout,
noTimeout: -1,
isPrimaryRenderer: true,
supportsPersistence: false,
// isPrimaryRenderer: true,
// supportsPersistence: false,
preparePortalMount(_containerInfo) {
throw new Error("Function not implemented.")
},
getInstanceFromNode(_node) {
throw new Error("Function not implemented.")
},
beforeActiveInstanceBlur() {
throw new Error("Function not implemented.")
},
afterActiveInstanceBlur() {
throw new Error("Function not implemented.")
},
prepareScopeUpdate(_scopeInstance, _instance) {
throw new Error("Function not implemented.")
},
getInstanceFromScope(_scopeInstance) {
throw new Error("Function not implemented.")
},
detachDeletedInstance(_node) {
throw new Error("Function not implemented.")
},
// preparePortalMount(_containerInfo) {
// throw new Error("Function not implemented.")
// },
// getInstanceFromNode(_node) {
// throw new Error("Function not implemented.")
// },
// beforeActiveInstanceBlur() {
// throw new Error("Function not implemented.")
// },
// afterActiveInstanceBlur() {
// throw new Error("Function not implemented.")
// },
// prepareScopeUpdate(_scopeInstance, _instance) {
// throw new Error("Function not implemented.")
// },
// getInstanceFromScope(_scopeInstance) {
// throw new Error("Function not implemented.")
// },
// detachDeletedInstance(_node) {
// throw new Error("Function not implemented.")
// },
supportsHydration: false,
NotPendingTransition: undefined,
HostTransitionContext: undefined as any,
// supportsHydration: false,
// NotPendingTransition: undefined,
// HostTransitionContext: undefined as any,
resetFormInstance(_form) {
throw new Error("Function not implemented.")
},
requestPostPaintCallback(_callback: (time: number) => void) {
throw new Error("Function not implemented.")
},
shouldAttemptEagerTransition: (): boolean => {
throw new Error("Function not implemented.")
},
maySuspendCommit(_type, _props) {
throw new Error("Function not implemented.")
},
preloadInstance(_type, _props) {
throw new Error("Function not implemented.")
},
startSuspendingCommit() {
throw new Error("Function not implemented.")
},
suspendInstance(_type, _props) {
throw new Error("Function not implemented.")
},
waitForCommitToBeReady() {
throw new Error("Function not implemented.")
},
})
// resetFormInstance(_form) {
// throw new Error("Function not implemented.")
// },
// requestPostPaintCallback(_callback: (time: number) => void) {
// throw new Error("Function not implemented.")
// },
// shouldAttemptEagerTransition: (): boolean => {
// throw new Error("Function not implemented.")
// },
// maySuspendCommit(_type, _props) {
// throw new Error("Function not implemented.")
// },
// preloadInstance(_type, _props) {
// throw new Error("Function not implemented.")
// },
// startSuspendingCommit() {
// throw new Error("Function not implemented.")
// },
// suspendInstance(_type, _props) {
// throw new Error("Function not implemented.")
// },
// waitForCommitToBeReady() {
// throw new Error("Function not implemented.")
// },
} as Partial<
HostConfig<
string,
Record<string, unknown>,
Node<NodePathMap>,
Node<NodePathMap>,
Node<NodePathMap>,
Node<NodePathMap>,
Node<NodePathMap>,
Node<NodePathMap>,
Node<NodePathMap>,
unknown,
unknown,
unknown,
unknown,
unknown
>
> as any)
}
const applyNextProps = (instance: Node<NodePathMap>, nextProps: Record<string, unknown>) => {