forked from nation3/mobile-passport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typescript interfaces (#2)
Add class structure
- Loading branch information
1 parent
083497e
commit 05ec47e
Showing
2 changed files
with
7 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
export interface Pass { | ||
organizationName: string; | ||
passTypeIdentifier: string; | ||
description: string; | ||
teamIdentifier: string; | ||
backgroundColor: string; | ||
foregroundColor: string; | ||
labelColor: string; | ||
formatVersion: number; | ||
storeCard: StoreCard; | ||
barcodes: Barcode[]; | ||
export class Pass { | ||
|
||
} | ||
|
||
export interface Barcode { | ||
message: string; | ||
format: string; | ||
messageEncoding: string; | ||
} | ||
export class ApplePass extends Pass { | ||
|
||
export interface StoreCard { | ||
headerFields: Field[]; | ||
primaryFields: any[]; | ||
secondaryFields: Field[]; | ||
} | ||
|
||
export interface Field { | ||
value: string; | ||
label: string; | ||
key: string; | ||
fieldUUID?: string; | ||
export class GooglePass extends Pass { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters