Managing two projects https://github.com/theADAMJR/2PG and https://github.com/theADAMJR/2PG-Dashboard has me constantly copying and pasting types back and forth.
export class AutoModModule extends Module {
ignoredRoles: string[] = [];
autoDeleteMessages = true;
filters: MessageFilter[] = [];
banWords: string[] = [];
banLinks: string[] = [];
filterThreshold = 5;
autoWarnUsers = true;
}
export enum EventType {
Ban = "BAN",
ConfigUpdate = "CONFIG_UPDATE",
LevelUp = "LEVEL_UP",
MessageDeleted = "MESSAGE_DELETED",
MemberJoin = "MEMBER_JOIN",
MemberLeave = "MEMBER_LEAVE",
Unban = "UNBAN",
Warn ="WARN"
}
Looking for a more efficient way to share types across TypeScript projects. Any recommendations?