-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtygo.yaml
34 lines (34 loc) · 1.25 KB
/
tygo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
packages:
- path: "github.com/erpc/erpc/common"
output_path: "typescript/config/src/generated.ts"
flavor: "yaml"
type_mappings:
time.Duration: "number /* time in nanoseconds (time.Duration) */"
# The following doesn't work, cause tygo only replace types when it's an `ast.SelectorExpr`, and following types are simple `ast.Ident`
# waiting for PR: https://github.com/gzuidhof/tygo/pull/74
# id_ConnectorDriverType: "TsConnectorDriverType"
# id_ConnectorConfig: "TsConnectorConfig"
# id_UpstreamType: "TsUpstreamType"
# id_NetworkArchitecture: "TsNetworkArchitecture"
# id_DurationString: "Duration"
# id_ByteSizeString: "ByteSize"
frontmatter: |
import type {
LogLevel,
Duration,
ByteSize,
ConnectorDriverType as TsConnectorDriverType,
ConnectorConfig as TsConnectorConfig,
UpstreamType as TsUpstreamType,
NetworkArchitecture as TsNetworkArchitecture,
AuthType as TsAuthType,
AuthStrategyConfig as TsAuthStrategyConfig,
SelectionPolicyEvalFunction
} from "./types"
exclude_files:
- "utils.go"
- "vendors.go"
- "errors.go"
- "json_rpc.go"
- "request.go"
- "response.go"