Skip to content

Commit

Permalink
ci: apply automated fixes and generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 30, 2024
1 parent f64e6d5 commit 4003d7b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
8 changes: 6 additions & 2 deletions docs/reference/classes/derived.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ registerOnGraph(deps): void

##### deps

readonly ([`Derived`](derived.md)\<`any`, readonly `any`[]\> \| [`Store`](store.md)\<`any`, (`cb`) => `any`\>)[] = `...`
readonly (
\| [`Derived`](derived.md)\<`any`\>
\| [`Store`](store.md)\<`any`, (`cb`) => `any`\>)[] = `...`

#### Returns

Expand Down Expand Up @@ -239,7 +241,9 @@ unregisterFromGraph(deps): void

##### deps

readonly ([`Derived`](derived.md)\<`any`, readonly `any`[]\> \| [`Store`](store.md)\<`any`, (`cb`) => `any`\>)[] = `...`
readonly (
\| [`Derived`](derived.md)\<`any`\>
\| [`Store`](store.md)\<`any`, (`cb`) => `any`\>)[] = `...`

#### Returns

Expand Down
4 changes: 3 additions & 1 deletion docs/reference/interfaces/derivedfnprops.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ title: DerivedFnProps

## Type Parameters

**TArr** *extends* `ReadonlyArray`\<[`Derived`](../classes/derived.md)\<`any`\> \| [`Store`](../classes/store.md)\<`any`\>\> = `ReadonlyArray`\<`any`\>
**TArr** *extends* `ReadonlyArray`\<
\| [`Derived`](../classes/derived.md)\<`any`\>
\| [`Store`](../classes/store.md)\<`any`\>\> = `ReadonlyArray`\<`any`\>

**TUnwrappedArr** *extends* `UnwrapReadonlyDerivedOrStoreArray`\<`TArr`\> = `UnwrapReadonlyDerivedOrStoreArray`\<`TArr`\>

Expand Down
6 changes: 4 additions & 2 deletions docs/reference/interfaces/derivedoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ title: DerivedOptions

**TState**

**TArr** *extends* `ReadonlyArray`\<[`Derived`](../classes/derived.md)\<`any`\> \| [`Store`](../classes/store.md)\<`any`\>\> = `ReadonlyArray`\<`any`\>
**TArr** *extends* `ReadonlyArray`\<
\| [`Derived`](../classes/derived.md)\<`any`\>
\| [`Store`](../classes/store.md)\<`any`\>\> = `ReadonlyArray`\<`any`\>

## Properties

Expand Down Expand Up @@ -63,7 +65,7 @@ optional onSubscribe: (listener, derived) => () => void;

##### derived

[`Derived`](../classes/derived.md)\<`TState`, readonly `any`[]\>
[`Derived`](../classes/derived.md)\<`TState`\>

#### Returns

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/type-aliases/unwrapderivedorstore.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: UnwrapDerivedOrStore
# Type Alias: UnwrapDerivedOrStore\<T\>

```ts
type UnwrapDerivedOrStore<T>: T extends Derived<infer InnerD> ? InnerD : T extends Store<infer InnerS> ? InnerS : never;
type UnwrapDerivedOrStore<T> = T extends Derived<infer InnerD> ? InnerD : T extends Store<infer InnerS> ? InnerS : never;
```

## Type Parameters
Expand Down
4 changes: 3 additions & 1 deletion docs/reference/variables/depsthathavewrittenthistick.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const __depsThatHaveWrittenThisTick: object;
### current

```ts
current: (Derived<unknown, readonly any[]> | Store<unknown, (cb) => unknown>)[];
current: (
| Derived<unknown>
| Store<unknown, (cb) => unknown>)[];
```

## Defined in
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/variables/derivedtostore.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: __derivedToStore
# Variable: \_\_derivedToStore

```ts
const __derivedToStore: WeakMap<Derived<unknown, readonly any[]>, Set<Store<unknown, (cb) => unknown>>>;
const __derivedToStore: WeakMap<Derived<unknown>, Set<Store<unknown, (cb) => unknown>>>;
```

## Defined in
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/variables/storetoderived.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: __storeToDerived
# Variable: \_\_storeToDerived

```ts
const __storeToDerived: WeakMap<Store<unknown, (cb) => unknown>, Set<Derived<unknown, readonly any[]>>>;
const __storeToDerived: WeakMap<Store<unknown, (cb) => unknown>, Set<Derived<unknown>>>;
```

This is here to solve the pyramid dependency problem where:
Expand Down

0 comments on commit 4003d7b

Please sign in to comment.