Repository navigation
Expand file tree
/
Copy pathtygo.yaml
More file actions
51 lines (51 loc) · 1.85 KB
/
Copy pathtygo.yaml
File metadata and controls
51 lines (51 loc) · 1.85 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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) */"
telemetry.ActionKeep: '"keep"'
telemetry.ActionDrop: '"drop"'
# 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,
EvmNetworkConfigForDefaults as TsEvmNetworkConfigForDefaults,
SvmNetworkConfigForDefaults as TsSvmNetworkConfigForDefaults,
SelectionPolicyEvalFunction,
BoolOrString
} from "./types"
exclude_files:
- "utils.go"
- "thirdparty.go"
- "errors.go"
- "json_rpc.go"
- "request.go"
- "response.go"
- "duration.go"
- "defaults.go"
- "matcher.go"
- "runtime.go"
- "upstream_fake.go"
- "vendors.go"
- "tracing_core.go"
- "tracing_util.go"
# common/user.go is server-internal: the auth strategy name lives on the
# request's ExecState, not on User, so the generated TS type must not
# advertise it.
- "user.go"