From 76a01d2e136cf26b37317cdd1089d6651b892f67 Mon Sep 17 00:00:00 2001 From: Zane Starr Date: Fri, 31 May 2019 15:45:30 -0700 Subject: [PATCH] fix: adds non .default export option to ts class fixes #217 --- templates/typescript/templated/exported-class.template.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/typescript/templated/exported-class.template.ts b/templates/typescript/templated/exported-class.template.ts index f03b4951..a86fbd87 100644 --- a/templates/typescript/templated/exported-class.template.ts +++ b/templates/typescript/templated/exported-class.template.ts @@ -18,7 +18,7 @@ export interface Options { } } -export default class <%= className %> { +export class <%= className %> { public rpc: Client; private validator: MethodCallValidator; private openrpcDocument: OpenRPC; @@ -72,4 +72,5 @@ export default class <%= className %> { } <% }); %> } +export default <%= className %>; `);