From 552952c2e05306c9ecee87039b2d0879c6b653fb Mon Sep 17 00:00:00 2001 From: Jhen Date: Mon, 21 Aug 2023 19:01:44 +0800 Subject: [PATCH] fix(ts): not support TSIntersectionType in codegen --- docs/API/README.md | 28 ++++++++++++++-------------- docs/API/classes/WhisperContext.md | 10 +++++----- example/ios/Podfile.lock | 4 ++-- src/NativeRNWhisper.ts | 7 +------ 4 files changed, 22 insertions(+), 27 deletions(-) diff --git a/docs/API/README.md b/docs/API/README.md index 274340f..f3cbaec 100644 --- a/docs/API/README.md +++ b/docs/API/README.md @@ -49,7 +49,7 @@ whisper.rn #### Defined in -[index.ts:289](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L289) +[index.ts:289](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L289) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[index.ts:34](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L34) +[index.ts:34](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L34) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[NativeRNWhisper.ts:5](https://github.com/mybigday/whisper.rn/blob/296d30b/src/NativeRNWhisper.ts#L5) +[NativeRNWhisper.ts:5](https://github.com/mybigday/whisper.rn/blob/2aed191/src/NativeRNWhisper.ts#L5) ___ @@ -107,7 +107,7 @@ ___ #### Defined in -[index.ts:41](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L41) +[index.ts:41](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L41) ___ @@ -132,7 +132,7 @@ ___ #### Defined in -[index.ts:63](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L63) +[index.ts:63](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L63) ___ @@ -150,7 +150,7 @@ ___ #### Defined in -[index.ts:96](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L96) +[index.ts:96](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L96) ___ @@ -174,7 +174,7 @@ ___ #### Defined in -[index.ts:83](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L83) +[index.ts:83](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L83) ___ @@ -184,7 +184,7 @@ ___ #### Defined in -[index.ts:48](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L48) +[index.ts:48](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L48) ___ @@ -202,7 +202,7 @@ ___ #### Defined in -[NativeRNWhisper.ts:42](https://github.com/mybigday/whisper.rn/blob/296d30b/src/NativeRNWhisper.ts#L42) +[NativeRNWhisper.ts:37](https://github.com/mybigday/whisper.rn/blob/2aed191/src/NativeRNWhisper.ts#L37) ## Variables @@ -214,7 +214,7 @@ Is allow fallback to CPU if load CoreML model failed #### Defined in -[index.ts:374](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L374) +[index.ts:374](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L374) ___ @@ -226,7 +226,7 @@ Is use CoreML models on iOS #### Defined in -[index.ts:371](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L371) +[index.ts:371](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L371) ___ @@ -238,7 +238,7 @@ Current version of whisper.cpp #### Defined in -[index.ts:366](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L366) +[index.ts:366](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L366) ## Functions @@ -258,7 +258,7 @@ Current version of whisper.cpp #### Defined in -[index.ts:311](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L311) +[index.ts:311](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L311) ___ @@ -272,4 +272,4 @@ ___ #### Defined in -[index.ts:361](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L361) +[index.ts:361](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L361) diff --git a/docs/API/classes/WhisperContext.md b/docs/API/classes/WhisperContext.md index 041c426..c446b75 100644 --- a/docs/API/classes/WhisperContext.md +++ b/docs/API/classes/WhisperContext.md @@ -32,7 +32,7 @@ #### Defined in -[index.ts:105](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L105) +[index.ts:105](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L105) ## Properties @@ -42,7 +42,7 @@ #### Defined in -[index.ts:103](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L103) +[index.ts:103](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L103) ## Methods @@ -56,7 +56,7 @@ #### Defined in -[index.ts:284](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L284) +[index.ts:284](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L284) ___ @@ -84,7 +84,7 @@ Transcribe audio file #### Defined in -[index.ts:110](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L110) +[index.ts:110](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L110) ___ @@ -106,4 +106,4 @@ Transcribe the microphone audio stream, the microphone user permission is requir #### Defined in -[index.ts:178](https://github.com/mybigday/whisper.rn/blob/296d30b/src/index.ts#L178) +[index.ts:178](https://github.com/mybigday/whisper.rn/blob/2aed191/src/index.ts#L178) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 37c1fa5..a697c2f 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -759,7 +759,7 @@ PODS: - SSZipArchive (~> 2.2) - SocketRocket (0.6.0) - SSZipArchive (2.4.3) - - whisper-rn (0.3.2): + - whisper-rn (0.3.3): - RCT-Folly - RCTRequired - RCTTypeSafety @@ -997,7 +997,7 @@ SPEC CHECKSUMS: RNZipArchive: 68a0c6db4b1c103f846f1559622050df254a3ade SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef - whisper-rn: 30bc8047fd30ec3f8d38de48fd656453cd0d30d0 + whisper-rn: 9886d0a33003438dee65448211ffbc2c905b9568 Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa YogaKit: f782866e155069a2cca2517aafea43200b01fd5a diff --git a/src/NativeRNWhisper.ts b/src/NativeRNWhisper.ts index 08aa980..b7992a1 100644 --- a/src/NativeRNWhisper.ts +++ b/src/NativeRNWhisper.ts @@ -34,11 +34,6 @@ export type TranscribeOptions = { prompt?: string, } -export type TranscribeFileNativeOptions = TranscribeOptions & { - /** Register onProgress event for transcribe file */ - onProgress?: boolean -} - export type TranscribeResult = { result: string, segments: Array<{ @@ -73,7 +68,7 @@ export interface Spec extends TurboModule { contextId: number, jobId: number, path: string, - options: TranscribeFileNativeOptions, + options: {}, // TranscribeOptions & { onProgress?: boolean } ): Promise; startRealtimeTranscribe( contextId: number,