Skip to content

Commit

Permalink
Fixing metadata type
Browse files Browse the repository at this point in the history
  • Loading branch information
pqvst committed May 8, 2020
1 parent 1849d82 commit c02f9a1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
5 changes: 4 additions & 1 deletion dist/lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ export interface Customer {
postcode: string;
vat: string;
}
export interface Metadata {
[name: string]: string;
}
export interface Plan {
id: string;
name: string;
metadata: object;
metadata: Metadata;
amount: number;
currency: string;
interval: string;
Expand Down
16 changes: 6 additions & 10 deletions dist/lib/validate-vat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/validate-vat.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ export interface Customer {
postcode: string;
vat: string;
}

export interface Metadata {
[name: string]: string;
}

export interface Plan {
id: string;
name: string;
metadata: object;
metadata: Metadata;
amount: number;
currency: string;
interval: string;
Expand Down

0 comments on commit c02f9a1

Please sign in to comment.