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`
master
Kevin C. Coram 2020-10-09 12:38:55 -04:00
父节点 900448aedc
当前提交 dcb83e8109
签署人:: kevin
GPG 密钥 ID: 0E64ECB9EDE572A3
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -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';