Skip to main content

MethodKeys TypeAlias

A utility type that extracts the method keys from a given type.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/tree-agent/alpha.

For more information about our API support guarantees, see here.

Signature

export type MethodKeys<T> = {
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
};

Type Parameters

ParameterDescription
T