This commit upgrades TypeScript to the latest version 5.3 and introduces `verbatimModuleSyntax` in line with the official Vue guide recommendatinos (vuejs/docs#2592). By enforcing `import type` for type-only imports, this commit improves code clarity and supports tooling optimization, ensuring imports are only bundled when necessary for runtime. Changes: - Bump TypeScript to 5.3.3 across the project. - Adjust import statements to utilize `import type` where applicable, promoting cleaner and more efficient code.
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import { OperatingSystem } from '@/domain/OperatingSystem';
|
|
import type { BrowserCondition, TouchSupportExpectation } from '@/infrastructure/RuntimeEnvironment/Browser/BrowserOs/BrowserCondition';
|
|
|
|
export class BrowserConditionStub implements BrowserCondition {
|
|
public operatingSystem: OperatingSystem = OperatingSystem.Android;
|
|
|
|
public existingPartsInSameUserAgent: readonly string[] = [
|
|
`[${BrowserConditionStub.name}] existing part`,
|
|
];
|
|
|
|
public notExistingPartsInUserAgent?: readonly string[] = [
|
|
`[${BrowserConditionStub.name}] non-existing part`,
|
|
];
|
|
|
|
public touchSupport?: TouchSupportExpectation = undefined;
|
|
|
|
public withOperatingSystem(operatingSystem: OperatingSystem): this {
|
|
this.operatingSystem = operatingSystem;
|
|
return this;
|
|
}
|
|
|
|
public withExistingPartsInSameUserAgent(existingPartsInSameUserAgent: readonly string[]): this {
|
|
this.existingPartsInSameUserAgent = existingPartsInSameUserAgent;
|
|
return this;
|
|
}
|
|
|
|
public withNotExistingPartsInUserAgent(notExistingPartsInUserAgent?: readonly string[]): this {
|
|
this.notExistingPartsInUserAgent = notExistingPartsInUserAgent;
|
|
return this;
|
|
}
|
|
|
|
public withTouchSupport(touchSupport?: TouchSupportExpectation): this {
|
|
this.touchSupport = touchSupport;
|
|
return this;
|
|
}
|
|
}
|