From 2321295609a4a919b2f7342c1143a166d15ff476 Mon Sep 17 00:00:00 2001 From: ryancooper7 Date: Wed, 12 Jun 2024 11:43:07 -0700 Subject: [PATCH] fix: export response type renderer (#349) * fix: exporting response type renderer * chore: consolidating imports --- src/commands/index.ts | 2 +- src/renderer/type/index.ts | 1 + test/renderer/type/response-type-renderer.test.ts | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/index.ts b/src/commands/index.ts index 02ec555..d472012 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -11,11 +11,11 @@ import { DefaultContentTypeRenderer, JsDocRenderer, LocalizedContentTypeRenderer, + ResponseTypeRenderer, TypeGuardRenderer, V10ContentTypeRenderer, V10TypeGuardRenderer, } from '../renderer'; -import { ResponseTypeRenderer } from '../renderer/type/response-type-renderer'; import { CFEditorInterface } from '../types'; class ContentfulMdg extends Command { diff --git a/src/renderer/type/index.ts b/src/renderer/type/index.ts index 77c4c85..2ea391c 100644 --- a/src/renderer/type/index.ts +++ b/src/renderer/type/index.ts @@ -6,6 +6,7 @@ export { V10TypeGuardRenderer } from './v10-type-guard-renderer'; export { LocalizedContentTypeRenderer } from './localized-content-type-renderer'; export { JsDocRenderer } from './js-doc-renderer'; export { TypeGuardRenderer } from './type-guard-renderer'; +export { ResponseTypeRenderer } from './response-type-renderer'; export { createDefaultContext } from './create-default-context'; export { createV10Context } from './create-v10-context'; export type { RenderContext } from './create-default-context'; diff --git a/test/renderer/type/response-type-renderer.test.ts b/test/renderer/type/response-type-renderer.test.ts index 52aa208..f48e653 100644 --- a/test/renderer/type/response-type-renderer.test.ts +++ b/test/renderer/type/response-type-renderer.test.ts @@ -1,6 +1,5 @@ import { Project, ScriptTarget, SourceFile } from 'ts-morph'; -import { CFContentType } from '../../../src'; -import { ResponseTypeRenderer } from '../../../src/renderer/type/response-type-renderer'; +import { CFContentType, ResponseTypeRenderer } from '../../../src'; import stripIndent = require('strip-indent'); describe('A response type renderer class', () => {