Skip to main content

Type Alias: MethodKeys<M>

MethodKeys<M> = { [K in keyof M]: M[K] extends (args: never[]) => unknown ? K : never }[keyof M]

Defined in: src/animation/Always.ts:33

The keys of M whose values are methods.

Used to constrain methodName so only callable members of a mobject are accepted. The predicate uses never[] parameters so a method with concrete parameter types (for example setX(x: number)) still matches.

Type Parameters​

M​

M