Skip to content

Interface methods referencing imported types #4

Open
@robfordww

Description

@robfordww
//go:webrpc typescript -client -out=./demo_gospeak.gen.ts
//go:webrpc golang -server -pkg=rpc -out=../rpc/server_gospeak.gen.go
type DemoWebAPI interface {
	QueryDB(ctx context.Context, source string, q string) (res []models.DemoRow, err error)
}

This produces a
type models.DemoRow struct {
in the generated file. This is not valid Go, and fails on compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions