Skip to content

Commit 0518e66

Browse files
committed
Fix node types
1 parent db1f1fc commit 0518e66

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Node.js SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.3.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.3.2-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ declare module "node-appwrite" {
18261826

18271827
static fromBuffer(buffer: Buffer, filename: string): InputFile;
18281828

1829-
static fromBlob(blob: buffer.Blob, filename: string): Promise<InputFile>;
1829+
static fromBlob(blob: Blob, filename: string): Promise<InputFile>;
18301830

18311831
static fromStream(stream: NodeJS.ReadableStream, filename: string, size: number): InputFile;
18321832

@@ -2674,7 +2674,7 @@ declare module "node-appwrite" {
26742674
* Create Relationship Attribute
26752675
*
26762676
* Create relationship attribute. [Learn more about relationship
2677-
* attributes](docs/databases-relationships#relationship-attributes).
2677+
* attributes](/docs/databases-relationships#relationship-attributes).
26782678
*
26792679
*
26802680
* @param {string} databaseId
@@ -2763,7 +2763,7 @@ declare module "node-appwrite" {
27632763
* @throws {AppwriteException}
27642764
* @returns {Promise}
27652765
*/
2766-
getAttribute(databaseId: string, collectionId: string, key: string): Promise<string>;
2766+
getAttribute(databaseId: string, collectionId: string, key: string): Promise<any>;
27672767
/**
27682768
* Delete Attribute
27692769
*
@@ -2778,7 +2778,7 @@ declare module "node-appwrite" {
27782778
* Update Relationship Attribute
27792779
*
27802780
* Update relationship attribute. [Learn more about relationship
2781-
* attributes](docs/databases-relationships#relationship-attributes).
2781+
* attributes](/docs/databases-relationships#relationship-attributes).
27822782
*
27832783
*
27842784
* @param {string} databaseId
@@ -3061,7 +3061,7 @@ declare module "node-appwrite" {
30613061
* @throws {AppwriteException}
30623062
* @returns {Promise}
30633063
*/
3064-
createBuild(functionId: string, deploymentId: string, buildId: string): Promise<string>;
3064+
createBuild(functionId: string, deploymentId: string, buildId: string): Promise<any>;
30653065
/**
30663066
* List Executions
30673067
*
@@ -3172,7 +3172,7 @@ declare module "node-appwrite" {
31723172
* @throws {AppwriteException}
31733173
* @returns {Promise}
31743174
*/
3175-
query(query: object): Promise<string>;
3175+
query(query: object): Promise<any>;
31763176
/**
31773177
* GraphQL Endpoint
31783178
*
@@ -3182,7 +3182,7 @@ declare module "node-appwrite" {
31823182
* @throws {AppwriteException}
31833183
* @returns {Promise}
31843184
*/
3185-
mutation(query: object): Promise<string>;
3185+
mutation(query: object): Promise<any>;
31863186
}
31873187
export class Health extends Service {
31883188
constructor(client: Client);

lib/services/databases.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ class Databases extends Service {
11951195
* Create Relationship Attribute
11961196
*
11971197
* Create relationship attribute. [Learn more about relationship
1198-
* attributes](docs/databases-relationships#relationship-attributes).
1198+
* attributes](/docs/databases-relationships#relationship-attributes).
11991199
*
12001200
*
12011201
* @param {string} databaseId
@@ -1547,7 +1547,7 @@ class Databases extends Service {
15471547
* Update Relationship Attribute
15481548
*
15491549
* Update relationship attribute. [Learn more about relationship
1550-
* attributes](docs/databases-relationships#relationship-attributes).
1550+
* attributes](/docs/databases-relationships#relationship-attributes).
15511551
*
15521552
*
15531553
* @param {string} databaseId

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
"type": "git",
1111
"url": "https://github.com/appwrite/sdk-for-node"
1212
},
13-
"devDependencies": {},
13+
"devDependencies": {
14+
"@types/node": "^18.16.1"
15+
},
1416
"dependencies": {
15-
"axios": "^1.3.4",
17+
"axios": "^1.3.6",
1618
"form-data": "^4.0.0"
1719
}
1820
}

0 commit comments

Comments
 (0)