Compare commits

...

1 Commits

Author SHA1 Message Date
yyhuni
6389b0f672 feat(fingerprints): Add type annotation to getAcceptConfig function
- Add explicit return type annotation `Record<string, string[]>` to getAcceptConfig function
- Improve type safety and IDE autocomplete for file type configuration
- Enhance code clarity for accepted file types mapping in import dialog
2025-12-31 10:17:25 +08:00

View File

@@ -209,7 +209,7 @@ export function ImportFingerprintDialog({
}[fingerprintType]
// Determine accepted file types based on fingerprint type
const getAcceptConfig = () => {
const getAcceptConfig = (): Record<string, string[]> => {
if (fingerprintType === "arl") {
return {
"application/json": [".json"],