From dcb83e8109f3deeebd09a529b92a2c11555c6c5e Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Fri, 9 Oct 2020 12:38:55 -0400 Subject: [PATCH] Use `import type` to import the Message interface Use TypeScript 3.8+ `import type` to import the Message interface. This addresses issues with the type being removed by transpilation, which thus prevents "export 'Message' was not found" warnings when running `nx serve api` --- apps/api/src/app/app.gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/app/app.gateway.ts b/apps/api/src/app/app.gateway.ts index c121916..b20cf8b 100644 --- a/apps/api/src/app/app.gateway.ts +++ b/apps/api/src/app/app.gateway.ts @@ -1,5 +1,5 @@ +import type { Message } from '@chat-room/api-interfaces'; import { - Message, MESSAGE_TO_CLIENT, MESSAGE_TO_SERVER, } from '@chat-room/api-interfaces';