Skip to content

createManagedTempRoot

createManagedTempRoot(prefix, options?): Promise<{ cleanup: () => Promise<void>; path: string; }>

Defined in: wp-typia-project-tools/src/runtime/temp-roots.ts:134

Create a managed wp-typia temp root and install process cleanup handlers.

string

Temp directory prefix. Must start with wp-typia-.

Pick<TempRootOptions, "tmpDir"> = {}

Optional temp directory override.

Promise<{ cleanup: () => Promise<void>; path: string; }>

The created temp-root path plus an async cleanup helper.