Skip to content

Commit

Permalink
Update ts_template.go
Browse files Browse the repository at this point in the history
  • Loading branch information
asim authored Jan 19, 2022
1 parent 89af1a9 commit 6c0cada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/client-gen/ts_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export interface {{ title $typeName }}{{ "{" }}
{{end}}
`

const tsExampleTemplate = `{{ $service := .service }}const { {{ title $service.Name }}Service } = require('m3o/{{ $service.Name }}');
const tsExampleTemplate = `// npm install m3o
{{ $service := .service }}const { {{ title $service.Name }}Service } = require('m3o/{{ $service.Name }}');
const {{ $service.Name }}Service = new {{ title $service.Name }}Service(process.env.M3O_API_TOKEN)
Expand Down

0 comments on commit 6c0cada

Please sign in to comment.