This commit enhances type safety and fixes type-related issues throughout the project including: - Updated type definitions in entities, repositories, and models - Improved type annotations in services and controllers - Fixed type issues in adapters and utilities - Enhanced test file type definitions - Added typings/index.d.ts for global type declarations 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>
22 lines
563 B
TypeScript
22 lines
563 B
TypeScript
import { AccessLevel, SingletonProto } from '@eggjs/tegg';
|
|
import type { BugVersion } from '../../core/entity/BugVersion.ts';
|
|
|
|
@SingletonProto({
|
|
accessLevel: AccessLevel.PUBLIC,
|
|
})
|
|
export class BugVersionStore {
|
|
private bugVersion: BugVersion | undefined;
|
|
private version: string | undefined;
|
|
|
|
getBugVersion(version: string): BugVersion | undefined {
|
|
if (this.version === version) {
|
|
return this.bugVersion;
|
|
}
|
|
}
|
|
|
|
setBugVersion(bugVersion: BugVersion, version: string) {
|
|
this.version = version;
|
|
this.bugVersion = bugVersion;
|
|
}
|
|
}
|