Skip to content

Commit

Permalink
fix(ts): not support TSIntersectionType in codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Aug 21, 2023
1 parent 2aed191 commit 552952c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 27 deletions.
28 changes: 14 additions & 14 deletions docs/API/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

___

Expand All @@ -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)

___

Expand Down Expand Up @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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

Expand All @@ -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)

___

Expand All @@ -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)
10 changes: 5 additions & 5 deletions docs/API/classes/WhisperContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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)

___

Expand Down Expand Up @@ -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)

___

Expand All @@ -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)
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -997,7 +997,7 @@ SPEC CHECKSUMS:
RNZipArchive: 68a0c6db4b1c103f846f1559622050df254a3ade
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
whisper-rn: 30bc8047fd30ec3f8d38de48fd656453cd0d30d0
whisper-rn: 9886d0a33003438dee65448211ffbc2c905b9568
Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

Expand Down
7 changes: 1 addition & 6 deletions src/NativeRNWhisper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down Expand Up @@ -73,7 +68,7 @@ export interface Spec extends TurboModule {
contextId: number,
jobId: number,
path: string,
options: TranscribeFileNativeOptions,
options: {}, // TranscribeOptions & { onProgress?: boolean }
): Promise<TranscribeResult>;
startRealtimeTranscribe(
contextId: number,
Expand Down

0 comments on commit 552952c

Please sign in to comment.