-
Notifications
You must be signed in to change notification settings - Fork 2
isEvent
API / isEvent function
Checkes whether the provided instance is an event (implements IEvent<TSubject, TEventArgs>
).
function isEvent<TEvent extends IEvent<any, any> = IEvent<any, any>>(
maybeEvent: any
): maybeEvent is TEvent
Source reference: src/events/isEvent.ts:9
.
-
TEvent - The type of event to check, defaults to
IEvent<TSubject, TEventArgs>
.Type constraints: IEvent<
any
,any
>.
Default value: IEvent<any
,any
>.
-
maybeEvent:
any
The value to check if is an event.
Returns true
if the provided instance implements IEvent<TSubject, TEventArgs>
; otherwise false
.
Overview
Motivation
Guides and Tutorials - Getting Started
Releases
CodeSandbox
API
Events
IEvent
IEventHandler
EventDispatcher
ViewModels
INotifyPropertiesChanged
ViewModel
Forms
Form
IFormFieldConfig
FormField
ReadOnlyFormCollection
FormCollection
IConfigurableFormCollection
FormSetupCallback
Validation
IValidator
ValidatorCallback
IObjectValidator
IValidatable
Validation / Triggers
WellKnownValidationTrigger
ValidationTrigger
Observable Collection
ReadOnlyObservableCollection
ObservableCollection
INotifyCollectionChanged
CollectionChangeOperation
INotifyCollectionReordered
CollectionReorderOperation
Observable Map
ReadOnlyObservableMap
ObservableMap
INotifyMapChanged
MapChangeOperation
Observable Set
ReadOnlyObservableSet
ObservableSet
INotifySetChanged
SetChangeOperation
Dependency Handling
IDependencyResolver
IDependencyContainer
DependencyContainer
useDependency
useViewModelDependency
useDependencyResolver
React Hooks
useViewModel
useViewModelMemo
useObservableCollection
useObservableMap
useObservableSet