generate strong types for engine signals and connections
Abierto
enhancement
- Lenguaje dominante
- C++
- Estrellas
- 1.1k
- Forks
- 80
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
is there any interest in generating strong types for connections such as:
(this is probably a poor example, I'd need to dig in and make a PR to do it correctly)
```ts
declare module godot {
interface SceneTree implements MainLoop {
//overload 1 for network_peer_connected signal
function connect(
signal: "network_peer_connected",
target: T,
method: Extract | (...args: Parameters) => void, //could use e.g. MethodOf,
binds: Tail>,
flags: number = 0,
): number;
// more overloads, one per signal for discriminating union
}
}
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.