Skip to content

Commit

Permalink
fix: small type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed May 30, 2019
1 parent 4988e7b commit d6d673f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class App extends Component<any, any> {

componentWillMount() {
this.mixerConnection = new MixerConnection(this.props.store);
this.automationConnection = new AutomationConnection(this.props.store, this.mixerConnection);
this.automationConnection = new AutomationConnection(this.mixerConnection);
this.snapShopStoreTimer();
loadSnapshotState(this.props.store.channels[0], this.props.store.settings[0].numberOfChannels);
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Channels extends PureComponent<any, any> {
this.props.mixerConnection.updateOutLevels();
}

handleSnapMix(snapIndex) {
handleSnapMix(snapIndex: number) {
this.props.dispatch({
type:'SNAP_RECALL',
snapIndex: snapIndex
Expand All @@ -53,7 +53,7 @@ class Channels extends PureComponent<any, any> {
});
}

snapMixButton(snapIndex) {
snapMixButton(snapIndex: number) {
return (
<div key={snapIndex} className="channels-snap-mix-line">
<button
Expand All @@ -70,15 +70,15 @@ class Channels extends PureComponent<any, any> {
render() {
return (
<div className="channels-body">
{this.props.store.channels[0].channel.map((none, index) => {
{this.props.store.channels[0].channel.map((none: any, index: number) => {
return <Channel
channelIndex = {index}
key={index}
mixerConnection = { this.props.mixerConnection}
/>
})
}
{this.props.store.channels[0].grpFader.map((none, index) => {
{this.props.store.channels[0].grpFader.map((none: any, index: number) => {
return <GrpFader
faderIndex = {index}
key={index}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Channels extends PureComponent<any, any> {
this.handleHideAllChannels = this.handleHideAllChannels.bind(this);
}

handleChange() {
handleChange(event: any) {
var settingsCopy= Object.assign({}, this.state.settings);
settingsCopy[event.target.name] = event.target.value;
this.setState(
Expand All @@ -36,7 +36,7 @@ class Channels extends PureComponent<any, any> {
}


handleTemplateChange(selectedOption ) {
handleTemplateChange(selectedOption: any) {
var settingsCopy= Object.assign({}, this.state.settings);
settingsCopy.mixerProtocol = selectedOption.value;
this.setState(
Expand Down
4 changes: 2 additions & 2 deletions src/utils/MixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export class MixerConnection {
// Get mixer protocol
this.mixerProtocol = MixerProtocolPresets[this.store.settings[0].mixerProtocol] || MixerProtocolPresets.genericMidi;
if (this.mixerProtocol.protocol === 'OSC') {
this.mixerConnection = new OscMixerConnection(this.fadeInOut);
this.mixerConnection = new OscMixerConnection();
} else if (this.mixerProtocol.protocol === 'MIDI') {
this.mixerConnection = new MidiMixerConnection(this.fadeInOut);
this.mixerConnection = new MidiMixerConnection();
}

//Setup timers for fade in & out
Expand Down

0 comments on commit d6d673f

Please sign in to comment.