Skip to content

Commit

Permalink
(fix): expose method
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Jul 15, 2024
1 parent ef83778 commit ea1cd8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fern-api/sdk",
"version": "0.12.1",
"version": "0.12.2",
"private": false,
"repository": "https://github.com/fern-api/fern-typescript",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions src/wrapper/Template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export class Template implements Fern.templates.EndpointSnippetTemplate {
return await _innerResolver.resolveWithFormatting();
}

public serialize(): string {
return JSON.stringify(this.endpointSnippetTemplate);
}

public static from(template: Fern.templates.EndpointSnippetTemplate): Template {
return new Template(template.sdk, template.endpointId, template.snippetTemplate);
}
Expand Down

0 comments on commit ea1cd8c

Please sign in to comment.