@capgo/native-audio 5.0.5 → 5.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -236,12 +236,12 @@ preload(options: PreloadOptions) => Promise<void>
236
236
  ### play(...)
237
237
 
238
238
  ```typescript
239
- play(options: { assetId: string; time: number; }) => Promise<void>
239
+ play(options: { assetId: string; time?: number; }) => Promise<void>
240
240
  ```
241
241
 
242
- | Param | Type |
243
- | ------------- | ----------------------------------------------- |
244
- | **`options`** | <code>{ assetId: string; time: number; }</code> |
242
+ | Param | Type |
243
+ | ------------- | ------------------------------------------------ |
244
+ | **`options`** | <code>{ assetId: string; time?: number; }</code> |
245
245
 
246
246
  --------------------
247
247
 
package/dist/docs.json CHANGED
@@ -43,12 +43,12 @@
43
43
  },
44
44
  {
45
45
  "name": "play",
46
- "signature": "(options: { assetId: string; time: number; }) => Promise<void>",
46
+ "signature": "(options: { assetId: string; time?: number; }) => Promise<void>",
47
47
  "parameters": [
48
48
  {
49
49
  "name": "options",
50
50
  "docs": "",
51
- "type": "{ assetId: string; time: number; }"
51
+ "type": "{ assetId: string; time?: number | undefined; }"
52
52
  }
53
53
  ],
54
54
  "returns": "Promise<void>",
@@ -3,7 +3,7 @@ export interface NativeAudio {
3
3
  preload(options: PreloadOptions): Promise<void>;
4
4
  play(options: {
5
5
  assetId: string;
6
- time: number;
6
+ time?: number;
7
7
  }): Promise<void>;
8
8
  pause(options: {
9
9
  assetId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-audio",
3
- "version": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "description": "A native plugin for native audio engine",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",