Skip to content
Shapemetry

@huukhanhnguyen/model / core/BaseObject

core/BaseObject

BaseObject

Extends

Extended by

Constructors

Constructor

new BaseObject(): BaseObject

Returns

BaseObject

Inherited from

Notifier.constructor

attributes

attributes: Record<string, unknown> = {}

collection

collection: BaseCollection

id

id: string

parent?

optional parent?: any

sourceId

sourceId: string = ""

Accessors

model

Get Signature

get model(): any

Returns

any

Methods

_dispose()

_dispose(): void

Returns

void

Inherited from

Notifier._dispose

addListener()

addListener(event, listener): () => void

Parameters

event

string

listener

Listener

Returns

() => void

Inherited from

Notifier.addListener

notify()

notify(event, ...args): void

Parameters

event

string

args

...unknown[]

Returns

void

Inherited from

Notifier.notify

remove()

remove(): void

Returns

void

removeListener()

removeListener(event, listener): void

Parameters

event

string

listener

Listener

Returns

void

Inherited from

Notifier.removeListener

toJSON()

toJSON(): Record<string, unknown> | BaseObjectJSON

Returns

Record<string, unknown> | BaseObjectJSON

Last updated: 📖 1 min readEdit on GitHub