Skip to content

Commit f9201d8

Browse files
committed
docs: rebuild docs with newer package
1 parent c3d6691 commit f9201d8

18 files changed

Lines changed: 56 additions & 56 deletions

docs/docs/06-api-reference/classes/ClassificationModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The input shape as an array of numbers.
145145

146146
### load()
147147

148-
> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>
148+
> **load**(`model`, `onDownloadProgressCallback?`): `Promise`\<`void`\>
149149
150150
Defined in: [modules/computer_vision/ClassificationModule.ts:21](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ClassificationModule.ts#L21)
151151

@@ -162,7 +162,7 @@ Object containing `modelSource`.
162162

163163
[`ResourceSource`](../type-aliases/ResourceSource.md)
164164

165-
##### onDownloadProgressCallback
165+
##### onDownloadProgressCallback?
166166

167167
(`progress`) => `void`
168168

docs/docs/06-api-reference/classes/ExecutorchModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The input shape as an array of numbers.
146146

147147
### load()
148148

149-
> **load**(`modelSource`, `onDownloadProgressCallback`): `Promise`\<`void`\>
149+
> **load**(`modelSource`, `onDownloadProgressCallback?`): `Promise`\<`void`\>
150150
151151
Defined in: [modules/general/ExecutorchModule.ts:22](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/general/ExecutorchModule.ts#L22)
152152

@@ -161,7 +161,7 @@ Optionally accepts a download progress callback.
161161

162162
Source of the model to be loaded.
163163

164-
##### onDownloadProgressCallback
164+
##### onDownloadProgressCallback?
165165

166166
(`progress`) => `void`
167167

docs/docs/06-api-reference/classes/ImageEmbeddingsModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The input shape as an array of numbers.
145145

146146
### load()
147147

148-
> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>
148+
> **load**(`model`, `onDownloadProgressCallback?`): `Promise`\<`void`\>
149149
150150
Defined in: [modules/computer_vision/ImageEmbeddingsModule.ts:20](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageEmbeddingsModule.ts#L20)
151151

@@ -161,7 +161,7 @@ Object containing `modelSource`.
161161

162162
[`ResourceSource`](../type-aliases/ResourceSource.md)
163163

164-
##### onDownloadProgressCallback
164+
##### onDownloadProgressCallback?
165165

166166
(`progress`) => `void`
167167

docs/docs/06-api-reference/classes/ImageSegmentationModule.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Unloads the model from memory.
5555

5656
### forward()
5757

58-
> **forward**\<`K`\>(`imageSource`, `classesOfInterest`, `resizeToInput`): `Promise`\<`Record`\<`"ARGMAX"`, `Int32Array`\<`ArrayBufferLike`\>\> & `Record`\<`K`, `Float32Array`\<`ArrayBufferLike`\>\>\>
58+
> **forward**\<`K`\>(`imageSource`, `classesOfInterest?`, `resizeToInput?`): `Promise`\<`Record`\<`"ARGMAX"`, `Int32Array`\<`ArrayBufferLike`\>\> & `Record`\<`K`, `Float32Array`\<`ArrayBufferLike`\>\>\>
5959
6060
Defined in: [modules/computer_vision/ImageSegmentationModule.ts:176](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageSegmentationModule.ts#L176)
6161

@@ -75,13 +75,13 @@ Executes the model's forward pass to perform semantic segmentation on the provid
7575

7676
A string representing the image source (e.g., a file path, URI, or Base64-encoded string).
7777

78-
##### classesOfInterest
78+
##### classesOfInterest?
7979

8080
`K`[] = `[]`
8181

8282
An optional list of label keys indicating which per-class probability masks to include in the output. `ARGMAX` is always returned regardless.
8383

84-
##### resizeToInput
84+
##### resizeToInput?
8585

8686
`boolean` = `true`
8787

@@ -180,7 +180,7 @@ Defined in: [modules/computer_vision/ImageSegmentationModule.ts:76](https://gith
180180

181181
### fromCustomConfig()
182182

183-
> `static` **fromCustomConfig**\<`L`\>(`modelSource`, `config`, `onDownloadProgress`): `Promise`\<`ImageSegmentationModule`\<`L`\>\>
183+
> `static` **fromCustomConfig**\<`L`\>(`modelSource`, `config`, `onDownloadProgress?`): `Promise`\<`ImageSegmentationModule`\<`L`\>\>
184184
185185
Defined in: [modules/computer_vision/ImageSegmentationModule.ts:142](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageSegmentationModule.ts#L142)
186186

@@ -207,7 +207,7 @@ A fetchable resource pointing to the model binary.
207207

208208
A [SegmentationConfig](../type-aliases/SegmentationConfig.md) object with the label map and optional preprocessing parameters.
209209

210-
##### onDownloadProgress
210+
##### onDownloadProgress?
211211

212212
(`progress`) => `void`
213213

@@ -233,7 +233,7 @@ const segmentation = await ImageSegmentationModule.fromCustomConfig(
233233

234234
### fromModelName()
235235

236-
> `static` **fromModelName**\<`C`\>(`config`, `onDownloadProgress`): `Promise`\<`ImageSegmentationModule`\<[`ModelNameOf`](../type-aliases/ModelNameOf.md)\<`C`\>\>\>
236+
> `static` **fromModelName**\<`C`\>(`config`, `onDownloadProgress?`): `Promise`\<`ImageSegmentationModule`\<[`ModelNameOf`](../type-aliases/ModelNameOf.md)\<`C`\>\>\>
237237
238238
Defined in: [modules/computer_vision/ImageSegmentationModule.ts:95](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ImageSegmentationModule.ts#L95)
239239

@@ -254,7 +254,7 @@ The config object is discriminated by `modelName` — each model can require dif
254254

255255
A [ModelSources](../type-aliases/ModelSources.md) object specifying which model to load and where to fetch it from.
256256

257-
##### onDownloadProgress
257+
##### onDownloadProgress?
258258

259259
(`progress`) => `void`
260260

docs/docs/06-api-reference/classes/LLMModule.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Module for managing a Large Language Model (LLM) instance.
88

99
### Constructor
1010

11-
> **new LLMModule**(`optionalCallbacks`): `LLMModule`
11+
> **new LLMModule**(`optionalCallbacks?`): `LLMModule`
1212
1313
Defined in: [modules/natural_language_processing/LLMModule.ts:20](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/natural_language_processing/LLMModule.ts#L20)
1414

1515
Creates a new instance of `LLMModule` with optional callbacks.
1616

1717
#### Parameters
1818

19-
##### optionalCallbacks
19+
##### optionalCallbacks?
2020

2121
Object containing optional callbacks.
2222

@@ -227,7 +227,7 @@ Interrupts model generation. It may return one more token after interrupt.
227227

228228
### load()
229229

230-
> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>
230+
> **load**(`model`, `onDownloadProgressCallback?`): `Promise`\<`void`\>
231231
232232
Defined in: [modules/natural_language_processing/LLMModule.ts:49](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/natural_language_processing/LLMModule.ts#L49)
233233

@@ -257,7 +257,7 @@ Object containing model, tokenizer, and tokenizer config sources.
257257

258258
`ResourceSource` pointing to the JSON file which contains the tokenizer.
259259

260-
##### onDownloadProgressCallback
260+
##### onDownloadProgressCallback?
261261

262262
(`progress`) => `void`
263263

docs/docs/06-api-reference/classes/MessageCountContextStrategy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This strategy trims the conversation history based purely on the message count.
1313

1414
### Constructor
1515

16-
> **new MessageCountContextStrategy**(`windowLength`): `MessageCountContextStrategy`
16+
> **new MessageCountContextStrategy**(`windowLength?`): `MessageCountContextStrategy`
1717
1818
Defined in: [utils/llms/context_strategy/MessageCountContextStrategy.ts:14](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/utils/llms/context_strategy/MessageCountContextStrategy.ts#L14)
1919

@@ -23,7 +23,7 @@ Initializes the MessageCountContextStrategy.
2323

2424
#### Parameters
2525

26-
##### windowLength
26+
##### windowLength?
2727

2828
`number` = `5`
2929

docs/docs/06-api-reference/classes/OCRModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The OCR result as a `OCRDetection[]`.
5959

6060
### load()
6161

62-
> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>
62+
> **load**(`model`, `onDownloadProgressCallback?`): `Promise`\<`void`\>
6363
6464
Defined in: [modules/computer_vision/OCRModule.ts:27](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/OCRModule.ts#L27)
6565

@@ -85,7 +85,7 @@ Object containing `detectorSource`, `recognizerSource`, and `language`.
8585

8686
[`ResourceSource`](../type-aliases/ResourceSource.md)
8787

88-
##### onDownloadProgressCallback
88+
##### onDownloadProgressCallback?
8989

9090
(`progress`) => `void`
9191

docs/docs/06-api-reference/classes/ObjectDetectionModule.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Unloads the model from memory.
5858

5959
### forward()
6060

61-
> **forward**(`imageSource`, `detectionThreshold`): `Promise`\<[`Detection`](../interfaces/Detection.md)[]\>
61+
> **forward**(`imageSource`, `detectionThreshold?`): `Promise`\<[`Detection`](../interfaces/Detection.md)[]\>
6262
6363
Defined in: [modules/computer_vision/ObjectDetectionModule.ts:54](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ObjectDetectionModule.ts#L54)
6464

@@ -73,7 +73,7 @@ Executes the model's forward pass, where `imageSource` can be a fetchable resour
7373

7474
The image source to be processed.
7575

76-
##### detectionThreshold
76+
##### detectionThreshold?
7777

7878
`number` = `0.7`
7979

@@ -152,7 +152,7 @@ The input shape as an array of numbers.
152152

153153
### load()
154154

155-
> **load**(`model`, `onDownloadProgressCallback`): `Promise`\<`void`\>
155+
> **load**(`model`, `onDownloadProgressCallback?`): `Promise`\<`void`\>
156156
157157
Defined in: [modules/computer_vision/ObjectDetectionModule.ts:22](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/modules/computer_vision/ObjectDetectionModule.ts#L22)
158158

@@ -169,7 +169,7 @@ Object containing `modelSource`.
169169

170170
[`ResourceSource`](../type-aliases/ResourceSource.md)
171171

172-
##### onDownloadProgressCallback
172+
##### onDownloadProgressCallback?
173173

174174
(`progress`) => `void`
175175

docs/docs/06-api-reference/classes/ResourceFetcher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ Currently supports reading file contents as strings for configuration files.
5858

5959
### fetch()
6060

61-
> `static` **fetch**(`callback`, ...`sources`): `Promise`\<`string`[] \| `null`\>
61+
> `static` **fetch**(`callback?`, ...`sources`): `Promise`\<`string`[] \| `null`\>
6262
6363
Defined in: [utils/ResourceFetcher.ts:105](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/utils/ResourceFetcher.ts#L105)
6464

6565
Fetches resources (remote URLs, local files or embedded assets), downloads or stores them locally for use by React Native ExecuTorch.
6666

6767
#### Parameters
6868

69-
##### callback
69+
##### callback?
7070

7171
(`downloadProgress`) => `void`
7272

docs/docs/06-api-reference/classes/SlidingWindowContextStrategy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ to ensure it fits within the model's physical context limits.
1717

1818
### Constructor
1919

20-
> **new SlidingWindowContextStrategy**(`bufferTokens`, `allowOrphanedAssistantMessages`): `SlidingWindowContextStrategy`
20+
> **new SlidingWindowContextStrategy**(`bufferTokens`, `allowOrphanedAssistantMessages?`): `SlidingWindowContextStrategy`
2121
2222
Defined in: [utils/llms/context_strategy/SlidingWindowContextStrategy.ts:19](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/utils/llms/context_strategy/SlidingWindowContextStrategy.ts#L19)
2323

@@ -31,7 +31,7 @@ Initializes the SlidingWindowContextStrategy.
3131

3232
The number of tokens to keep free for the model's generated response (e.g., 1000).
3333

34-
##### allowOrphanedAssistantMessages
34+
##### allowOrphanedAssistantMessages?
3535

3636
`boolean` = `false`
3737

0 commit comments

Comments
 (0)