Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New definitions reflect that `getgid()` is only available on POSIX platforms, leading to these type errors: fig/Attributes.ts:101:19 - error TS2532: Object is possibly 'undefined'. 101 this.#gid = process.getgid(); ~~~~~~~~~~~~~~ fig/Attributes.ts:101:19 - error TS2722: Cannot invoke an object which is possibly 'undefined'. 101 this.#gid = process.getgid(); ~~~~~~~~~~~~~~ Found 2 errors in the same file, starting at: fig/Attributes.ts:101 As you can see in the diff, `getuid()` already had a type definition like that, hence my `typeof` check. I refactored that to make it match the change I'm making to the `getgid()` call as well. The explicit imports of `process` aren't actually needed, but it seemed a nice idea to make the dependence on the global explicit, so I went through and did that too.
- Loading branch information
Showing
11 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import * as process from 'node:process'; | ||
|
||
import Context from 'fig/Context.js'; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters