@types/parse
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for parse 2.9 | ||
// Type definitions for parse 2.10 | ||
// Project: https://parseplatform.org/ | ||
@@ -257,6 +257,15 @@ // Definitions by: Ullisen Media Group <https://github.com/ullisenmedia> | ||
class File { | ||
constructor(name: string, data: any, type?: string); | ||
constructor(name: string, data: number[] | { base64: string } | Blob | { uri: string }, type?: string); | ||
/** | ||
* Return the data for the file, downloading it if not already present. | ||
* Data is present if initialized with Byte Array, Base64 or Saved with Uri. | ||
* Data is cleared if saved with File object selected with a file upload control | ||
* | ||
* @returns Promise that is resolved with base64 data | ||
*/ | ||
getData(): Promise<string>; | ||
name(): string; | ||
url(): string; | ||
save(options?: FullOptions): Promise<File>; | ||
save(options?: SuccessFailureOptions): Promise<File>; | ||
toJSON(): { __type: string, name: string, url: string }; | ||
url(options?: { forceSecure: boolean }): string; | ||
} | ||
@@ -361,8 +370,5 @@ | ||
static fetchAll<T extends Object>(list: T[], options: Object.FetchAllOptions): Promise<T[]>; | ||
static fetchAllIfNeeded<T extends Object>(list: T[], options: Object.FetchAllOptions): Promise<T[]>; | ||
static fetchAllWithInclude<T extends Object>( | ||
list: T[], | ||
keys: string | Array<string | Array<string>>, | ||
options: RequestOptions, | ||
): Promise<T[]>; | ||
static fetchAllIfNeeded<T extends Object>(list: T[], options?: Object.FetchAllOptions): Promise<T[]>; | ||
static fetchAllIfNeededWithInclude<T extends Object>(list: T[], keys: string | Array<string | Array<string>>, options?: RequestOptions): Promise<T[]>; | ||
static fetchAllWithInclude<T extends Object>(list: T[], keys: string | Array<string | Array<string>>, options?: RequestOptions): Promise<T[]>; | ||
static fromJSON<T extends Object>(json: any, override?: boolean): T; | ||
@@ -393,3 +399,3 @@ static pinAll(objects: Object[]): Promise<void>; | ||
fetch(options?: Object.FetchOptions): Promise<this>; | ||
fetchFromLocalDatastore(): Promise<this> | void; | ||
fetchFromLocalDatastore(): Promise<this>; | ||
fetchWithInclude(keys: string | Array<string | Array<string>>, options?: RequestOptions): Promise<this>; | ||
@@ -715,2 +721,4 @@ get<K extends Exclude<keyof T, symbol | number>>(attr: K): T[K]; | ||
on(event: 'open' | 'create' | 'update' | 'enter' | 'leave' | 'delete' | 'close', listener: (object: Object) => void): this; | ||
/** | ||
@@ -747,5 +755,5 @@ * Closes the subscription. | ||
class Config<T extends any = any> extends Object<T> { | ||
static get(options?: SuccessFailureOptions): Promise<Config>; | ||
static get(options?: UseMasterKeyOption): Promise<Config>; | ||
static current(): Config; | ||
static save(attr: any): Promise<Config>; | ||
static save(attr: any, options?: { [attr: string]: boolean }): Promise<Config>; | ||
@@ -752,0 +760,0 @@ get(attr: string): any; |
{ | ||
"name": "@types/parse", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "TypeScript definitions for parse", | ||
@@ -109,4 +109,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "59dbb9d933a5c9d3d4d76c9b100f7e7cfefe96f1a22975369d3fbf13d5c373ec", | ||
"typesPublisherContentHash": "a172e09c41f9c145c46ed061a720d7f2e163fa286d5946ff88f04e82dda65529", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 19 Nov 2019 23:55:46 GMT | ||
* Last updated: Sat, 07 Dec 2019 01:18:35 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: `ErrorCode`, `Parse` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55247
1152