@clockworkdog/cogs-client 2.0.0-beta.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,7 +36,7 @@ See [PluginManifestJson](https://clockwork-dog.github.io/cogs-client-lib/interfa
36
36
 
37
37
  If using Typescript set `"allowJs": true` in your `tsconfig.json`.
38
38
 
39
- Use the `@type {const}` JSDoc annotation to allow the manifest to be imported as a literal type and `@satisfies {import("@clockworkdog/cogs-client").PluginManifestJson}` to allow your editor to check the validity of the manifest.
39
+ Use the `@type {const}` JSDoc annotation to allow the manifest to be imported as a literal type and `@satisfies {import("@clockworkdog/cogs-client").CogsPluginManifest}` to allow your editor to check the validity of the manifest.
40
40
 
41
41
  e.g.
42
42
 
@@ -44,7 +44,7 @@ e.g.
44
44
  module.exports =
45
45
  /**
46
46
  * @type {const}
47
- * @satisfies {import("@clockworkdog/cogs-client").PluginManifestJsonReadonly}
47
+ * @satisfies {import("@clockworkdog/cogs-client").CogsPluginManifest}
48
48
  */
49
49
  ({
50
50
  name: 'Big Button',
@@ -256,8 +256,8 @@ class AudioPlayer {
256
256
  // Set callback after starting new fade, otherwise it will fire straight away as the previous fade is cancelled
257
257
  clipPlayer.player.once('fade', (soundId) => {
258
258
  clipPlayer.player.loop(false, soundId);
259
- clipPlayer.player.stop(soundId), soundId;
260
- });
259
+ clipPlayer.player.stop(soundId);
260
+ }, soundId);
261
261
  log('CLIP -> stopping', soundId);
262
262
  clip.state = { type: 'stopping' };
263
263
  }
@@ -2,7 +2,7 @@ import ShowPhase from './types/ShowPhase';
2
2
  import CogsClientMessage from './types/CogsClientMessage';
3
3
  import MediaClipStateMessage from './types/MediaClipStateMessage';
4
4
  import AllMediaClipStatesMessage from './types/AllMediaClipStatesMessage';
5
- import { CogsPluginManifest, PluginManifestEventJson } from './types/CogsPluginManifestJson';
5
+ import { CogsPluginManifest, PluginManifestEventJson } from './types/CogsPluginManifest';
6
6
  import * as ManifestTypes from './types/ManifestTypes';
7
7
  import { DeepReadonly } from './types/utils';
8
8
  export default class CogsConnection<Manifest extends CogsPluginManifest> {