API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeActionBinding

@codexo/exojs / input / stable

Any binding descriptor an action can be rebound with - the second argument of ActionMap.rebind. Deliberately the union of every kind's descriptor rather than a conditional type resolved from the action being rebound. A conditional over the map's own type parameter, however written, stops TypeScript inferring that parameter at every OTHER `ActionMap<T>` site - `scene.inputs.attach(map)` included - so the precision would be paid for by breaking inference for every caller. The ACTION NAME is still checked against the map's declared actions, and a mismatched binding shape is rejected at runtime by the action itself.

0
props
0
methods
0
events
Import
import { ActionBinding } from '@codexo/exojs'

Any binding descriptor an action can be rebound with - the second argument of ActionMap.rebind.

Deliberately the union of every kind's descriptor rather than a conditional type resolved from the action being rebound. A conditional over the map's own type parameter, however written, stops TypeScript inferring that parameter at every OTHER `ActionMap<T>` site - `scene.inputs.attach(map)` included - so the precision would be paid for by breaking inference for every caller. The ACTION NAME is still checked against the map's declared actions, and a mismatched binding shape is rejected at runtime by the action itself.

Definition1
Source