Add type declaration for the data structure.
This commit is contained in:
parent
c803e7fd76
commit
bffd0dd6e0
1 changed files with 14 additions and 0 deletions
14
src/types.d.ts
vendored
Normal file
14
src/types.d.ts
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
//
|
||||
// types.d.ts
|
||||
//
|
||||
// Written by: Tyler Akins (2020/01/06)
|
||||
//
|
||||
|
||||
|
||||
interface data {
|
||||
[key: string]: {
|
||||
total_bits: number;
|
||||
donators: string[];
|
||||
donations: number[];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue