Packages > @fluidframework/tree >

IsListener

true iff the given type is an acceptable shape for a event listener

Signature

export type IsListener<TListener> = TListener extends (...args: any[]) => void ? true : false;

Type Parameters

Parameter Description
TListener