Skip to content

Values

Values<C> = C extends Component<infer S> ? Partial<Record<keyof S, number>> : never

Initial values for a component in world.spawn / world.add: any subset of its fields.

C