Skip to content

Commit 83611df

Browse files
committed
Fix typed issue
1 parent ef5c543 commit 83611df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/temp-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export interface TempContext {
99
createFile: (options?: Deno.MakeTempOptions) => string;
1010
createDir: (options?: Deno.MakeTempOptions) => string;
1111
cleanup: () => void;
12-
onCleanup: (handler: VoidFunction) => VoidFunction[];
12+
onCleanup: (handler: VoidFunction) => void;
1313
}

src/core/temp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function globalTempContext() {
5353
return tempContext;
5454
}
5555

56-
export function createTempContext(options?: Deno.MakeTempOptions) {
56+
export function createTempContext(options?: Deno.MakeTempOptions): TempContext {
5757
let dir: string | undefined = Deno.makeTempDirSync({
5858
...options,
5959
dir: tempDir,

0 commit comments

Comments
 (0)