We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5c543 commit 83611dfCopy full SHA for 83611df
src/core/temp-types.ts
@@ -9,5 +9,5 @@ export interface TempContext {
9
createFile: (options?: Deno.MakeTempOptions) => string;
10
createDir: (options?: Deno.MakeTempOptions) => string;
11
cleanup: () => void;
12
- onCleanup: (handler: VoidFunction) => VoidFunction[];
+ onCleanup: (handler: VoidFunction) => void;
13
}
src/core/temp.ts
@@ -53,7 +53,7 @@ export function globalTempContext() {
53
return tempContext;
54
55
56
-export function createTempContext(options?: Deno.MakeTempOptions) {
+export function createTempContext(options?: Deno.MakeTempOptions): TempContext {
57
let dir: string | undefined = Deno.makeTempDirSync({
58
...options,
59
dir: tempDir,
0 commit comments