File tree Expand file tree Collapse file tree 4 files changed +28
-13
lines changed
Expand file tree Collapse file tree 4 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1+ declare function getAudioContext ( ) : AudioContext ;
2+
3+ export { getAudioContext } ;
Original file line number Diff line number Diff line change 1+ // src/index.ts
2+ function getAudioContext ( ) {
3+ const audioCtx = new AudioContext ( ) ;
4+ return audioCtx ;
5+ }
6+ export {
7+ getAudioContext
8+ } ;
Original file line number Diff line number Diff line change 1+ export function getAudioContext ( ) {
2+ const audioCtx = new AudioContext ( ) ;
3+ return audioCtx ;
4+ }
Original file line number Diff line number Diff line change 11{
2- "compilerOptions" : {
3- "strict" :true ,
4- "lib" : [" ESNext" ],
5- "module" : " esnext" ,
6- "target" : " esnext" ,
7- "moduleDetection" : " force" ,
8- "outDir" : " dist" ,
9- "skipLibCheck" : true ,
10- "sourceMap" : true ,
11- },
12- "include" : [" src" ],
13- "exclude" : [" node_modules" ," dist" ],
14- }
2+ "compilerOptions" : {
3+ "strict" : true ,
4+ "lib" : [" ESNext" , " DOM " ],
5+ "module" : " esnext" ,
6+ "target" : " esnext" ,
7+ "moduleDetection" : " force" ,
8+ "outDir" : " dist" ,
9+ "skipLibCheck" : true ,
10+ "sourceMap" : true
11+ },
12+ "include" : [" src" ],
13+ "exclude" : [" node_modules" , " dist" ]
14+ }
You can’t perform that action at this time.
0 commit comments