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