-
Notifications
You must be signed in to change notification settings - Fork 0
docs(config): add README, CHANGELOG, and TSDoc comments #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+639
−22
Conversation
This file contains hidden or 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
Contributor
Author
This was referenced Jan 23, 2026
This was referenced Jan 23, 2026
This was referenced Jan 23, 2026
3b27772 to
c6894cd
Compare
This was referenced Jan 23, 2026
Greptile Summary
|
| Filename | Overview |
|---|---|
| packages/config/src/index.ts | Enhanced with comprehensive TSDoc comments for all exported functions, types, and interfaces with examples |
| packages/config/README.md | New comprehensive documentation file covering API reference, XDG behavior, and configuration precedence |
Confidence score: 5/5
- This PR is extremely safe to merge with no production risk as it only adds documentation
- Score reflects documentation-only changes with no functional code modifications that could introduce bugs or breaking changes
- No files require special attention as all changes are non-functional documentation enhancements
Sequence Diagram
sequenceDiagram
participant User
participant loadConfig
participant getDefaultSearchPaths
participant findConfigFile
participant FileSystem
participant parseConfigFile
participant Parser
participant Schema
User->>loadConfig: "loadConfig(appName, schema, options?)"
loadConfig->>getDefaultSearchPaths: "getDefaultSearchPaths(appName)"
getDefaultSearchPaths-->>loadConfig: "searchPaths array"
loop "for each search path"
loadConfig->>findConfigFile: "findConfigFile(searchPath)"
findConfigFile->>FileSystem: "existsSync(config.{ext})"
FileSystem-->>findConfigFile: "file exists check"
alt "file found"
findConfigFile-->>loadConfig: "configFilePath"
else "file not found"
findConfigFile-->>loadConfig: "undefined"
end
end
alt "config file found"
loadConfig->>FileSystem: "readFileSync(configFilePath)"
FileSystem-->>loadConfig: "file content"
loadConfig->>parseConfigFile: "parseConfigFile(content, filename)"
parseConfigFile->>Parser: "parse based on extension"
Parser-->>parseConfigFile: "parsed object"
parseConfigFile-->>loadConfig: "Result<object, ParseError>"
loadConfig->>Schema: "schema.safeParse(parsed)"
Schema-->>loadConfig: "validation result"
loadConfig-->>User: "Result<T, ValidationError>"
else "no config file found"
loadConfig-->>User: "Result.err(NotFoundError)"
end
da80028 to
fd3f083
Compare
c6894cd to
6787845
Compare
Contributor
Author
|
Checked for new feedback; no changes needed. Stack still up to date. |
This was referenced Jan 24, 2026
Contributor
Author
6787845 to
1137f68
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Summary
Adds comprehensive documentation to
@outfitter/configpackage:@param,@returns, and@exampleHighlights
Test plan
bun run typecheckpassesbun run buildsucceeds🤖 Generated with Claude Code