Skip to content

mkdtempDisposableSync

mkdtempDisposableSync(this, prefix, options?): object

Defined in: src/node/sync.ts:647

Returns a disposable object whose path property holds the created directory path. When the object is disposed, the directory and its contents will be removed if it still exists. If the directory cannot be deleted, disposal will throw an error. The object has a remove() method which will perform the same task.

unknown

PathLike

BufferEncodingOption | EncodingOption

object

path: string

[dispose](): void

void

remove(): void

void

Add satisfies and maybe change return type once @types/node adds this.