-
Notifications
You must be signed in to change notification settings - Fork 0
add type definitions module #271
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| export type helpers_add_health_checkResult<T> = { | ||
| data: T | null; | ||
| error: string | null; | ||
| }; | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SUGGESTION: Type exposes an The Reply with |
||
| export function wrapResult<T>(data: T): helpers_add_health_checkResult<T> { | ||
| return { data, error: null }; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUGGESTION: File name does not match its exported content
The file is named
helpers_add_health_check.ts, implying health-check helpers, but it exports a genericResultwrapper type andwrapResult. This mismatch will mislead maintainers. Consider renaming to something likeresult.ts(orhelpers/result.ts) to reflect the actual contents.Reply with
@kilocode-bot fix itto have Kilo Code address this issue.