feat: Refactor utility and component exports, update dependencies, and add Knip for unused code detection.
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
import PasskeysSection from './PasskeysSection';
|
||||
import ApiTokensSection from './ApiTokensSection';
|
||||
import CapabilitySetsSection from './CapabilitySetsSection';
|
||||
import {
|
||||
API_TOKENS_SECTION,
|
||||
CAPABILITY_SETS_SECTION,
|
||||
DEFAULT_SETTINGS_SECTIONS,
|
||||
PASSKEYS_SECTION,
|
||||
} from '../../constants/settings';
|
||||
|
||||
export { PasskeysSection, ApiTokensSection, CapabilitySetsSection };
|
||||
export { PASSKEYS_SECTION, API_TOKENS_SECTION, CAPABILITY_SETS_SECTION, DEFAULT_SETTINGS_SECTIONS };
|
||||
export { DEFAULT_SETTINGS_SECTIONS };
|
||||
|
||||
@@ -59,13 +59,13 @@ interface PasskeyRegisterPayload {
|
||||
nickname?: string;
|
||||
}
|
||||
|
||||
export type RegisterPasskeyFailureReason = 'unsupported' | 'busy' | 'cancelled' | 'error';
|
||||
type RegisterPasskeyFailureReason = 'unsupported' | 'busy' | 'cancelled' | 'error';
|
||||
export type RegisterPasskeyResult =
|
||||
| { ok: true }
|
||||
| { ok: false; reason: RegisterPasskeyFailureReason; message?: string };
|
||||
|
||||
export type RevokePasskeyFailureReason = 'missing-id' | 'error';
|
||||
export type RevokePasskeyResult =
|
||||
type RevokePasskeyFailureReason = 'missing-id' | 'error';
|
||||
type RevokePasskeyResult =
|
||||
| { ok: true }
|
||||
| { ok: false; reason: RevokePasskeyFailureReason; message?: string };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user