Skip to content

Commit 87870b0

Browse files
author
Maciej Makowski
committed
refactor: refactored index.ts for web and moved types to src
1 parent e8a9bf3 commit 87870b0

16 files changed

+57
-583
lines changed

packages/react-native-audio-api/src/core/AnalyserNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { IndexSizeError } from '../errors';
22
import { IAnalyserNode } from '../interfaces';
3-
import { WindowType } from './types';
3+
import { WindowType } from '../types';
44
import AudioNode from './AudioNode';
55

66
export default class AnalyserNode extends AudioNode {

packages/react-native-audio-api/src/core/AudioNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IAudioNode } from '../interfaces';
2-
import { ChannelCountMode, ChannelInterpretation } from './types';
2+
import { ChannelCountMode, ChannelInterpretation } from '../types';
33
import BaseAudioContext from './BaseAudioContext';
44
import { InvalidAccessError } from '../errors';
55

packages/react-native-audio-api/src/core/BaseAudioContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IBaseAudioContext } from '../interfaces';
2-
import { ContextState, PeriodicWaveConstraints } from './types';
2+
import { ContextState, PeriodicWaveConstraints } from '../types';
33
import AudioDestinationNode from './AudioDestinationNode';
44
import OscillatorNode from './OscillatorNode';
55
import GainNode from './GainNode';

packages/react-native-audio-api/src/core/BiquadFilterNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IBiquadFilterNode } from '../interfaces';
33
import AudioNode from './AudioNode';
44
import AudioParam from './AudioParam';
55
import BaseAudioContext from './BaseAudioContext';
6-
import { BiquadFilterType } from './types';
6+
import { BiquadFilterType } from '../types';
77

88
export default class BiquadFilterNode extends AudioNode {
99
readonly frequency: AudioParam;

packages/react-native-audio-api/src/core/OscillatorNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IOscillatorNode } from '../interfaces';
2-
import { OscillatorType } from './types';
2+
import { OscillatorType } from '../types';
33
import AudioScheduledSourceNode from './AudioScheduledSourceNode';
44
import AudioParam from './AudioParam';
55
import BaseAudioContext from './BaseAudioContext';

packages/react-native-audio-api/src/index.native.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,20 @@ export { default as BiquadFilterNode } from './core/BiquadFilterNode';
1717
export { default as GainNode } from './core/GainNode';
1818
export { default as OscillatorNode } from './core/OscillatorNode';
1919
export { default as StereoPannerNode } from './core/StereoPannerNode';
20+
2021
export {
2122
OscillatorType,
2223
BiquadFilterType,
2324
ChannelCountMode,
2425
ChannelInterpretation,
2526
ContextState,
2627
WindowType,
27-
} from './core/types';
28+
PeriodicWaveConstraints,
29+
} from './types';
30+
31+
export {
32+
IndexSizeError,
33+
InvalidAccessError,
34+
InvalidStateError,
35+
RangeError,
36+
} from './errors';

0 commit comments

Comments
 (0)