github.com/vcilabs/webrpc@v0.5.2-0.20201116131534-162e27b1b33b/gen/typescript/templates/proto.gen.ts.tmpl (about) 1 {{- define "proto" -}} 2 /* tslint:disable */ 3 // {{.Name}} {{.SchemaVersion}} {{.SchemaHash}} 4 // -- 5 // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript 6 // Do not edit by hand. Update your webrpc schema and re-generate. 7 {{ if .WebRPCVersion}} 8 // WebRPC description and code-gen version 9 export const WebRPCVersion = "{{.WebRPCVersion}}" 10 {{end}}{{ if .SchemaVersion }} 11 // Schema version of your RIDL schema 12 export const WebRPCSchemaVersion = "{{.SchemaVersion}}" 13 {{end}}{{ if .SchemaHash }} 14 // Schema hash generated from your RIDL schema 15 export const WebRPCSchemaHash = "{{.SchemaHash}}" 16 {{end}} 17 {{template "types" .}} 18 19 {{- if .TargetOpts.Client}} 20 {{template "client" .}} 21 {{template "client_helpers" .}} 22 {{- end}} 23 24 {{- if .TargetOpts.Server}} 25 {{template "server" .}} 26 {{template "server_helpers" .}} 27 {{- end}} 28 29 {{- end}}