mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
chore: add script to check import / export type sorting (#900)
* Enforce separate type imports * chore: enforce separate type exports * refactor: flatten sdk index exports * updates * fix improperly sorted types * fixes and prettier * prettier
This commit is contained in:
@@ -3,11 +3,7 @@
|
||||
// Only export what's actually used elsewhere to enable proper tree shaking
|
||||
|
||||
// From provingMachine - used in screens and tests
|
||||
export {
|
||||
type ProvingStateType,
|
||||
useProvingStore,
|
||||
} from '@/utils/proving/provingMachine';
|
||||
|
||||
export type { ProvingStateType } from '@/utils/proving/provingMachine';
|
||||
// From provingUtils - used in tests (keeping these for testing purposes)
|
||||
export {
|
||||
encryptAES256GCM,
|
||||
@@ -23,3 +19,5 @@ export {
|
||||
hasAnyValidRegisteredDocument,
|
||||
isUserRegisteredWithAlternativeCSCA,
|
||||
} from '@/utils/proving/validateDocument';
|
||||
|
||||
export { useProvingStore } from '@/utils/proving/provingMachine';
|
||||
|
||||
@@ -20,10 +20,8 @@ import {
|
||||
generateNullifier,
|
||||
} from '@selfxyz/common/utils/passports';
|
||||
import { getLeafDscTree } from '@selfxyz/common/utils/trees';
|
||||
import {
|
||||
isPassportDataValid,
|
||||
type PassportValidationCallbacks,
|
||||
} from '@selfxyz/mobile-sdk-alpha';
|
||||
import type { PassportValidationCallbacks } from '@selfxyz/mobile-sdk-alpha';
|
||||
import { isPassportDataValid } from '@selfxyz/mobile-sdk-alpha';
|
||||
|
||||
import { DocumentEvents } from '@/consts/analytics';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user