Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BetterTyped/hyper-fetch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3f01c37e0788ea00eae9456e0746a468da91d5ac
Choose a base ref
...
head repository: BetterTyped/hyper-fetch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1d34242d9d322a59104cd898d31e0b76115089bb
Choose a head ref
  • 3 commits
  • 397 files changed
  • 1 contributor

Commits on May 5, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    91ce7ca View commit details

Commits on May 18, 2023

  1. fix: 🐛 Fixed build

    prc5 committed May 18, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    ad3576e View commit details
  2. docs: ✏️ Docs 3.x.x

    prc5 committed May 18, 2023
    Copy the full SHA
    1d34242 View commit details
Showing 397 changed files with 114,171 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,308 @@


# AppManager

<div class="api-docs__separator" data-reactroot="">

---

</div><div class="api-docs__import" data-reactroot="">

```ts
import { AppManager } from "@hyper-fetch/core"
```

</div><div class="api-docs__section">

## Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">

App manager handles main application states - focus and online. Those two values can answer questions:
- Is the tab or current view instance focused and visible for user?
- Is our application online or offline?
With the app manager it is not a problem to get the valid answer for this question.

</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:14](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L14)

</p><div class="api-docs__section">

## Parameters

</div><div class="api-docs__parameters"><table><thead><tr><th>Name</th><th>Details</th></tr></thead><tbody><tr param-data="options"><td class="api-docs__param-name optional">

### options

`Optional`

</td><td class="api-docs__param-type">

`AppManagerOptionsType`

</td></tr></tbody></table></div><div class="api-docs__section">

## Properties

</div><div class="api-docs__properties"><div class="api-docs__property" property-data="emitter"><h3 class="api-docs__name">

### `emitter`

</h3><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:15](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L15)

</p><div class="api-docs__section">

#### Type

</div><div class="api-docs__property-type">

```ts
EventEmitter
```

</div><hr/></div><div class="api-docs__property" property-data="events"><h3 class="api-docs__name">

### `events`

</h3><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:16](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L16)

</p><div class="api-docs__section">

#### Type

</div><div class="api-docs__property-type">

```ts
{ emitBlur: () => void; emitFocus: () => void; emitOffline: () => void; emitOnline: () => void; onBlur: (callback: () => void) => VoidFunction; onFocus: (callback: () => void) => VoidFunction; onOffline: (callback: () => void) => VoidFunction; onOnline: (callback: () => void) => VoidFunction }
```

</div><hr/></div><div class="api-docs__property" property-data="isBrowser"><h3 class="api-docs__name">

### `isBrowser`

</h3><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:18](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L18)

</p><div class="api-docs__section">

#### Type

</div><div class="api-docs__property-type">

```ts
boolean
```

</div><hr/></div><div class="api-docs__property" property-data="isFocused"><h3 class="api-docs__name">

### `isFocused`

</h3><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:20](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L20)

</p><div class="api-docs__section">

#### Type

</div><div class="api-docs__property-type">

```ts
boolean
```

</div><hr/></div><div class="api-docs__property" property-data="isOnline"><h3 class="api-docs__name">

### `isOnline`

</h3><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:19](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L19)

</p><div class="api-docs__section">

#### Type

</div><div class="api-docs__property-type">

```ts
boolean
```

</div><hr/></div><div class="api-docs__property" property-data="options"><h3 class="api-docs__name">

### `options`

</h3><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:22](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L22)

</p><div class="api-docs__section">

#### Type

</div><div class="api-docs__property-type">

```ts
AppManagerOptionsType
```

</div><hr/></div></div><div class="api-docs__section">

## Methods

</div><div class="api-docs__methods"><div class="api-docs__method" method-data="setFocused"><h3 class="api-docs__name">

### `setFocused()`

</h3><div class="api-docs__section">

#### Preview

</div><div class="api-docs__preview fn">

```ts
setFocused(isFocused)
```

</div><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:57](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L57)

</p><div class="api-docs__section">

#### Parameters

</div><div class="api-docs__parameters"><table><thead><tr><th>Name</th><th>Details</th></tr></thead><tbody><tr param-data="isFocused"><td class="api-docs__param-name required">

#### isFocused

`Required`

</td><td class="api-docs__param-type">

`boolean`

</td></tr></tbody></table></div><div class="api-docs__section">

#### Return

</div><div class="api-docs__returns">

```ts
void
```

</div><hr/></div><div class="api-docs__method" method-data="setOnline"><h3 class="api-docs__name">

### `setOnline()`

</h3><div class="api-docs__section">

#### Preview

</div><div class="api-docs__preview fn">

```ts
setOnline(isOnline)
```

</div><div class="api-docs__section">

#### Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [managers/app/app.manager.ts:67](https://github.com/BetterTyped/hyper-fetch/blob/c44d728f/packages/core/src/managers/app/app.manager.ts#L67)

</p><div class="api-docs__section">

#### Parameters

</div><div class="api-docs__parameters"><table><thead><tr><th>Name</th><th>Details</th></tr></thead><tbody><tr param-data="isOnline"><td class="api-docs__param-name required">

#### isOnline

`Required`

</td><td class="api-docs__param-type">

`boolean`

</td></tr></tbody></table></div><div class="api-docs__section">

#### Return

</div><div class="api-docs__returns">

```ts
void
```

</div><hr/></div></div>
Loading