API Reference
@univerjs
@univerjs/core
interfaces
Ieventobserver

@univerjs/core v0.4.2Docs


Interface: IEventObserver<T>

Extends

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionOverridesInherited fromDefined in
complete?() => voidA callback function that gets called by the producer if and when it has no more values to provide (by calling next callback function). This means that no error has happened. This callback can't be called more than one time, it can't be called if the error callback function have been called previously, nor it can't be called if the consumer has unsubscribed. For more info, please refer to guide/glossary-and-semantics#complete this guide.-Partial.completesubmodules/univer/node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/types/internal/types.d.ts:173
error?(err: any) => voidA callback function that gets called by the producer if and when it encountered a problem of any kind. The errored value will be provided through the err parameter. This callback can't be called more than one time, it can't be called if the complete callback function have been called previously, nor it can't be called if the consumer has unsubscribed. For more info, please refer to guide/glossary-and-semantics#error this guide.-Partial.errorsubmodules/univer/node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/types/internal/types.d.ts:163
next?(value: [T, EventState]) => unknownA callback function that gets called by the producer during the subscription when the producer "has" the value. It won't be called if error or complete callback functions have been called, nor after the consumer has unsubscribed. For more info, please refer to guide/glossary-and-semantics#next this guide.Partial.next-submodules/univer/packages/core/src/observer/observable.ts:50 (opens in a new tab)
priority?number---submodules/univer/packages/core/src/observer/observable.ts:52 (opens in a new tab)

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.