Skip to content

Commit

Permalink
More type simplifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdparchitect committed Nov 25, 2023
1 parent 868a726 commit d909cc4
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 135 deletions.
21 changes: 0 additions & 21 deletions packages/fetch/docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

### Functions

- [anySignal](modules.md#anysignal)
- [jsonl](modules.md#jsonl)
- [withRetry](modules.md#withretry)
- [withTimeout](modules.md#withtimeout)
Expand Down Expand Up @@ -84,26 +83,6 @@ ___

## Functions

### anySignal

**anySignal**(`signals`): `AbortSignal`

#### Parameters

| Name | Type |
| :------ | :------ |
| `signals` | `AbortSignal`[] |

#### Returns

`AbortSignal`

#### Defined in

[index.js:34](https://github.com/chatbotkit/node-sdk/blob/main/packages/fetch/src/index.js#L34)

___

### jsonl

**jsonl**(`body`): `AsyncGenerator`\<`Record`\<`string`, `any`\>, `any`, `any`\>
Expand Down
2 changes: 1 addition & 1 deletion packages/fetch/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const TIMEOUT_ERROR_NAME = 'TimeoutError'
* @param {AbortSignal[]} signals
* @returns {AbortSignal}
*/
export function anySignal(signals) {
function anySignal(signals) {
const controller = new AbortController()

for (const signal of signals) {
Expand Down
2 changes: 0 additions & 2 deletions packages/react/docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@
- [components/AutoScroller](modules/components_AutoScroller.md)
- [components/AutoTextarea](modules/components_AutoTextarea.md)
- [hooks/useConversationManager](modules/hooks_useConversationManager.md)
- [utils/object](modules/utils_object.md)
- [utils/string](modules/utils_string.md)
36 changes: 0 additions & 36 deletions packages/react/docs/modules/utils_object.md

This file was deleted.

75 changes: 0 additions & 75 deletions packages/react/docs/modules/utils_string.md

This file was deleted.

1 change: 1 addition & 0 deletions packages/react/src/utils/object.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @internal
* @template T
* @param {T} object
* @param {object} extension
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/utils/string.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @internal
* @param {string} [prefix]
* @returns {string}
*/
Expand All @@ -7,6 +8,7 @@ export function getRandomId(prefix) {
}

/**
* @internal
* @param {string} input
* @param {number} begin
* @param {number} end
Expand All @@ -18,6 +20,7 @@ export function replaceBetween(input, begin, end, replacement) {
}

/**
* @internal
* @param {string} input
* @param {[string, string][]} replacements
* @returns {({begin: number, end: number, input: string, output: string}|string)[]}
Expand Down

0 comments on commit d909cc4

Please sign in to comment.