🔄 Big News! bazed.ai is now sagentic.ai. Same vision, new name!

Skip to content

@sagentic-ai/sagentic-af / ParentOf

ParentOf<T> ​

Type parameters ​

• T extends Identified

Methods ​

abandon() ​

ts
abandon(child): void

Abandon a child object.

Parameters ​

• child: T

Returns ​

void

Throws ​

Error throw if child object is not adopted.

Source ​

src/common.ts:148


adopt() ​

ts
adopt(child): void

Adopt a child object, should.

Parameters ​

• child: T

Returns ​

void

Throws ​

Error if child object is somebody's else or is already adopted.

Source ​

src/common.ts:145