diff --git a/package.json b/package.json index 5319c25..6046cf9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/wrapper/Template.ts b/src/wrapper/Template.ts index 8c20712..7c3beab 100644 --- a/src/wrapper/Template.ts +++ b/src/wrapper/Template.ts @@ -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); }