Skip to content

Commit a7ec151

Browse files
committed
Healthcheck fix
1 parent 3cf35eb commit a7ec151

File tree

3 files changed

+49
-51
lines changed

3 files changed

+49
-51
lines changed

coderd/healthcheck/healthcheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Checker interface {
3030
Database(ctx context.Context, opts *DatabaseReportOptions) DatabaseReport
3131
}
3232

33-
// @typescript-generate DerphealthReport
33+
// @typescript-generate Report
3434
type Report struct {
3535
// Time is the time the report was generated at.
3636
Time time.Time `json:"time"`

scripts/apitypings/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ import (
2828

2929
var (
3030
// baseDirs are the directories to introspect for types to generate.
31-
baseDirs = [...]string{"./codersdk", "./coderd/healthcheck", "./coderd/healthcheck/derphealth"}
31+
baseDirs = [...]string{"./codersdk", "./coderd/healthcheck"}
3232
// externalTypes are types that are not in the baseDirs, but we want to
3333
// support. These are usually types that are used in the baseDirs.
3434
// Do not include things like "Database", as that would break the idea
3535
// of splitting db and api types.
3636
// Only include dirs that are client facing packages.
37-
externalTypeDirs = [...]string{"./cli/clibase"}
37+
externalTypeDirs = [...]string{"./cli/clibase", "./coderd/healthcheck/derphealth"}
3838
indent = " "
3939
)
4040

site/src/api/typesGenerated.ts

+46-48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)