Skip to content

Commit dd5eb22

Browse files
committed
Declare narrower type for TranslationProject
1 parent 750a2d0 commit dd5eb22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/project/dto/project.dto.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ export { Project as IProject, type AnyProject as Project };
220220
resolveType: resolveProjectType,
221221
implements: [Project],
222222
})
223-
export class TranslationProject extends Project {}
223+
export class TranslationProject extends Project {
224+
declare readonly type: 'MultiplicationTranslation' | 'MomentumTranslation';
225+
}
224226

225227
@RegisterResource({ db: e.MomentumTranslationProject })
226228
@ObjectType({

0 commit comments

Comments
 (0)