这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions docs/types/txikijs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,25 @@ declare global {
function kill(pid: number, sig?: Signal): void;

/**
* Triggers a garbage collection cycle.
* Management for the garbage collection.
*/
function gc(): void;

interface gc {
/**
* Force garbage collection now.
*/
run: () => void;

/**
* Enables / disables automatic garbage collection.
*/
enabled: boolean;

/**
* Sets / gets the threshold (in bytes) for automatic garbage collection.
*/
threshold: number;
}

/**
* The txiki.js version.
*/
Expand Down
Loading