Mercurial > hg > ugly-duckling
comparison src/app/waveform/waves-ui.d.ts @ 124:e40a39acec25
Use method definitions in MatrixEntity instead of instance members
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 15 Mar 2017 13:28:28 +0000 |
parents | efd72dc8337c |
children | 656176d22b96 |
comparison
equal
deleted
inserted
replaced
123:efd72dc8337c | 124:e40a39acec25 |
---|---|
13 states: any; | 13 states: any; |
14 utils: Utilities; | 14 utils: Utilities; |
15 } | 15 } |
16 | 16 |
17 interface MatrixEntity { | 17 interface MatrixEntity { |
18 getColumnCount: () => number; | 18 getColumnCount(): number; |
19 getColumnHeight: () => number; | 19 getColumnHeight(): number; |
20 getColumn: (n: number) => number[]; | 20 getColumn(n: number): number[]; |
21 getStepDuration: () => number; | 21 getStepDuration(): number; |
22 getStartTime: () => number; | 22 getStartTime(): number; |
23 } | 23 } |
24 | 24 |
25 interface MatrixEntityConstructor { | 25 interface MatrixEntityConstructor { |
26 new(): MatrixEntity; | 26 new(): MatrixEntity; |
27 } | 27 } |