From ea1cd8c7fc2842f4b1bb0cbd116a7bc1c3514d47 Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Mon, 15 Jul 2024 17:38:36 -0400 Subject: [PATCH] (fix): expose method --- package.json | 2 +- src/wrapper/Template.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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); }