forked from trent_larson/crowd-funder-for-time-pwa
- Fix Vue template syntax in App.vue by using proper event handler format - Update Vite config to properly handle ESM imports and crypto modules - Add manual chunks for better code splitting - Improve environment variable handling in vite-env.d.ts - Fix TypeScript linting errors in App.vue
37 lines
691 B
TypeScript
37 lines
691 B
TypeScript
// similar to VerifiableCredentialSubject... maybe rename this
|
|
export interface GenericVerifiableCredential {
|
|
'@context'?: string
|
|
'@type': string
|
|
[key: string]: unknown
|
|
}
|
|
|
|
export interface GenericCredWrapper<T extends GenericVerifiableCredential> {
|
|
claim: T
|
|
claimType?: string
|
|
handleId: string
|
|
id: string
|
|
issuedAt: string
|
|
issuer: string
|
|
publicUrls?: Record<string, string>
|
|
}
|
|
|
|
export interface ResultWithType {
|
|
type: string
|
|
}
|
|
|
|
export interface ErrorResponse {
|
|
error?: {
|
|
message?: string
|
|
}
|
|
}
|
|
|
|
export interface InternalError {
|
|
error: string
|
|
userMessage?: string
|
|
}
|
|
|
|
export interface ErrorResult extends ResultWithType {
|
|
type: 'error'
|
|
error: InternalError
|
|
}
|