mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
Adds missing check for typescript types to app ci (#1198)
* fix app types and add a ci check * fix lint check.
This commit is contained in:
3
.github/workflows/mobile-ci.yml
vendored
3
.github/workflows/mobile-ci.yml
vendored
@@ -86,6 +86,9 @@ jobs:
|
||||
- name: Run prettier
|
||||
run: yarn fmt
|
||||
working-directory: ./app
|
||||
- name: Check App Types
|
||||
run: yarn types
|
||||
working-directory: ./app
|
||||
- name: Check license headers
|
||||
run: node scripts/check-license-headers.mjs --check
|
||||
working-directory: ./
|
||||
|
||||
@@ -12,10 +12,7 @@ import {
|
||||
PassportEvents,
|
||||
ProofEvents,
|
||||
} from '@selfxyz/mobile-sdk-alpha/constants/analytics';
|
||||
import {
|
||||
getPreRegistrationDescription,
|
||||
usePrepareDocumentProof,
|
||||
} from '@selfxyz/mobile-sdk-alpha/onboarding/confirm-identification';
|
||||
import { getPreRegistrationDescription } from '@selfxyz/mobile-sdk-alpha/onboarding/confirm-identification';
|
||||
|
||||
import successAnimation from '@/assets/animations/loading/success.json';
|
||||
import { PrimaryButton } from '@/components/buttons/PrimaryButton';
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
"fmt:fix": "prettier --write .",
|
||||
"format": "sh -c 'if [ -z \"$SKIP_BUILD_DEPS\" ]; then yarn nice; else yarn fmt:fix; fi'",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint --fix .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"nice": "yarn lint:fix && yarn fmt:fix",
|
||||
"prepublishOnly": "npm run build && npm run typecheck && npm run validate:exports && npm run validate:pkg",
|
||||
"report:exports": "node ./scripts/report-exports.mjs",
|
||||
|
||||
@@ -51,6 +51,7 @@ export type { SDKEvent, SDKEventMap } from './types/events';
|
||||
export type { SdkErrorCategory } from './errors';
|
||||
|
||||
// Screen Components (React Native-based)
|
||||
export type { provingMachineCircuitType } from './proving/provingMachine';
|
||||
export {
|
||||
InitError,
|
||||
LivenessError,
|
||||
@@ -63,15 +64,16 @@ export {
|
||||
} from './errors';
|
||||
export { NFCScannerScreen } from './components/screens/NFCScannerScreen';
|
||||
export { PassportCameraScreen } from './components/screens/PassportCameraScreen';
|
||||
export { type ProvingStateType } from './proving/provingMachine';
|
||||
|
||||
// Context and Client
|
||||
export { QRCodeScreen } from './components/screens/QRCodeScreen';
|
||||
export { type ProvingStateType } from './proving/provingMachine';
|
||||
|
||||
export { SdkEvents } from './types/events';
|
||||
export { QRCodeScreen } from './components/screens/QRCodeScreen';
|
||||
// Components
|
||||
export { SelfClientContext, SelfClientProvider, useSelfClient } from './context';
|
||||
export { SdkEvents } from './types/events';
|
||||
// Documents utils
|
||||
export { SelfClientContext, SelfClientProvider, useSelfClient } from './context';
|
||||
|
||||
export { SelfMobileSdk } from './entry';
|
||||
|
||||
export {
|
||||
@@ -83,28 +85,26 @@ export {
|
||||
reStorePassportDataWithRightCSCA,
|
||||
} from './documents/utils';
|
||||
|
||||
/** @deprecated Use createSelfClient().extractMRZInfo or import from './mrz' */
|
||||
export { createListenersMap, createSelfClient } from './client';
|
||||
|
||||
/** @deprecated Use createSelfClient().extractMRZInfo or import from './mrz' */
|
||||
export { defaultConfig } from './config/defaults';
|
||||
|
||||
// Document utils
|
||||
export { extractMRZInfo, extractNameFromMRZ, formatDateToYYMMDD, scanMRZ } from './mrz';
|
||||
|
||||
// Document utils
|
||||
export { extractNameFromDocument } from './documents/utils';
|
||||
|
||||
// Core functions
|
||||
export { generateMockDocument, signatureAlgorithmToStrictSignatureAlgorithm } from './mock/generator';
|
||||
|
||||
// Core functions
|
||||
// Document validation
|
||||
export { isPassportDataValid } from './validation/document';
|
||||
|
||||
// Document validation
|
||||
export { mergeConfig } from './config/merge';
|
||||
|
||||
export { parseNFCResponse, scanNFC } from './nfc';
|
||||
|
||||
export { provingMachineCircuitType } from './proving/provingMachine';
|
||||
|
||||
export { reactNativeScannerAdapter } from './adapters/react-native/scanner';
|
||||
|
||||
export { scanQRProof } from './qr';
|
||||
|
||||
Reference in New Issue
Block a user