Skip to content

Commit

Permalink
generate all types for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed May 30, 2024
1 parent 05e099d commit d7f29e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/project/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,6 @@ func (s *stack) Run(ctx context.Context, input *StackInput) error {

types := map[string]map[string]interface{}{}
for _, receiver := range complete.Receivers {
if len(receiver.Links) == 0 {
continue
}
typesPath, err := fs.FindUp(filepath.Join(s.project.PathRoot(), receiver.Directory), "tsconfig.json")
if err != nil {
continue
Expand All @@ -453,7 +450,7 @@ func (s *stack) Run(ctx context.Context, input *StackInput) error {
links = map[string]interface{}{}
types[dir] = links
}
for _, link := range receiver.Links {
for _, link := range complete.Links {
if cloudflareBindings[link] != "" && receiver.Cloudflare != nil {

Check failure on line 454 in pkg/project/stack.go

View workflow job for this annotation

GitHub Actions / goreleaser

cannot use link (variable of type interface{}) as string value in map index: need type assertion
links[link] = literal{value: `import("@cloudflare/workers-types").` + cloudflareBindings[link]}

Check failure on line 455 in pkg/project/stack.go

View workflow job for this annotation

GitHub Actions / goreleaser

cannot use link (variable of type interface{}) as string value in map index: need type assertion
continue
Expand Down

0 comments on commit d7f29e4

Please sign in to comment.