# @types/firebase-client

> TypeScript definitions for firebase-client

Latest version **0.1.38** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/firebase-client
pnpm add @types/firebase-client
yarn add @types/firebase-client
bun add @types/firebase-client
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.38 |
| Published | 2025-10-24 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51476 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/firebase-client
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/firebase-client
- npm.io page: https://npm.io/package/@types/firebase-client

## Dependencies (1)

- [@types/q](https://npm.io/package/@types/q.md) ^0

## Recent versions

- 0.1.38 (latest) — 2025-10-24
- 0.1.37 (ts4.9) — 2023-11-07
- 0.1.34 (ts3.8) — 2021-12-23
- 0.1.33 (ts3.0) — 2020-05-15
- 0.1.32 (ts2.3) — 2017-11-08
- 0.1.31 (ts2.1) — 2017-08-21
- 0.1.36 — 2023-10-18
- 0.1.35 — 2023-09-14
- 0.1.30 — 2017-03-15
- 0.1.29 — 2016-09-19
- 0.1.28 — 2016-07-14
- 0.1.27-alpha — 2016-07-08
- 0.1.25-alpha — 2016-07-04
- 0.1.24-alpha — 2016-07-02
- 0.1.23-alpha — 2016-07-01
- … 5 more at https://npm.io/package/@types/firebase-client/versions

## README

# Installation
> `npm install --save @types/firebase-client`

# Summary
This package contains type definitions for firebase-client (https://www.github.com/jpstevens/firebase-client).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/firebase-client.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/firebase-client/index.d.ts)
````ts
import Q = require("q");

interface PushResponse {
    /**
     * Name ref (key) of the child resource
     */
    name: string;
}

interface FirebaseConfig {
    /**
     * path for the Firebase instance
     */
    url: string;

    /**
     * Token for authorisation
     */
    auth: string;
}

interface FirebaseClient {
    /**
     * Creates a new FirebaseClient given the provided configuration
     */
    new(config: FirebaseConfig): FirebaseClient;

    /**
     * Retrieves all objects at the base path
     */
    get<T>(): Q.Promise<T>;

    /**
     * Retrieves an object
     * @param path Relative path from the base for the resource
     */
    get<T>(path: string): Q.Promise<T>;

    /**
     * Returns a promise of the HTTP response from setting the value at the given path
     * @param path Relative path from the base for the resource
     * @param data Data to be set as the value for the given path
     */
    set<T>(path: string, data: T): Q.Promise<T>;

    /**
     * Update a node at a given path
     * @param path Relative path from the base for the resource
     * @param value Value of the response
     */
    update<T>(path: string, value: T): Q.Promise<T>;

    /**
     * Deletes the resource at a given path
     * @param path Relative path from the base for the resource
     */
    delete(path: string): Q.Promise<void>;

    /**
     * @param path Relative path from the base for the resource
     * @param value Object to push to the path
     */
    push<T>(path: string, value: T): Q.Promise<PushResponse>;
}

declare var FirebaseClient: FirebaseClient;

export = FirebaseClient;
export as namespace FirebaseClient;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/q](https://npmjs.com/package/@types/q)

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/firebase-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
