summaryrefslogtreecommitdiff
path: root/std/node/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/os.ts')
-rw-r--r--std/node/os.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/node/os.ts b/std/node/os.ts
index e4a00c450..3bff03a69 100644
--- a/std/node/os.ts
+++ b/std/node/os.ts
@@ -123,7 +123,7 @@ export function getPriority(pid = 0): number {
}
/** Returns the string path of the current user's home directory. */
-export function homedir(): string {
+export function homedir(): string | null {
return Deno.dir("home");
}
@@ -157,7 +157,7 @@ export function release(): string {
/** Not yet implemented */
export function setPriority(pid: number, priority?: number): void {
- /* The node API has the 'pid' as the first parameter and as optional.
+ /* The node API has the 'pid' as the first parameter and as optional.
This makes for a problematic implementation in Typescript. */
if (priority === undefined) {
priority = pid;