Mercurial > hg > ugly-duckling
view 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 |
line wrap: on
line source
/** * Created by lucas on 01/12/2016. */ declare const AmbientInstance: WavesUserInterface; declare module 'waves-ui' { export default AmbientInstance; } interface WavesUserInterface { core: any; helpers: any; states: any; utils: Utilities; } interface MatrixEntity { getColumnCount(): number; getColumnHeight(): number; getColumn(n: number): number[]; getStepDuration(): number; getStartTime(): number; } interface MatrixEntityConstructor { new(): MatrixEntity; } interface PrefilledMatrixEntityConstructor { new(data: Float32Array[] | number[][], startTime: number, stepDuration: number): MatrixEntity; } interface Utilities { MatrixEntity: MatrixEntityConstructor; PrefilledMatrixEntity: PrefilledMatrixEntityConstructor; scales: any; }