mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: downstream types and arg-passing
This commit is contained in:
7
packages/core/ui/image-cache/index.d.ts
vendored
7
packages/core/ui/image-cache/index.d.ts
vendored
@@ -84,18 +84,19 @@ export class Cache extends Observable {
|
||||
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
|
||||
* @param callback - Callback function which will be executed when event is raised.
|
||||
* @param thisArg - An optional parameter which will be used as `this` context for callback execution.
|
||||
* @param options An optional parameter. If passed as a boolean, configures the useCapture value. Otherwise, specifies options.
|
||||
*/
|
||||
on(eventNames: string, callback: (args: EventData) => void, thisArg?: any);
|
||||
on(eventNames: string, callback: (args: EventData) => void, thisArg?: any, options?: AddEventListenerOptions | boolean): void;
|
||||
|
||||
/**
|
||||
* Raised when the image has been downloaded.
|
||||
*/
|
||||
on(event: 'downloaded', callback: (args: DownloadedData) => void, thisArg?: any);
|
||||
on(event: 'downloaded', callback: (args: DownloadedData) => void, thisArg?: any, options?: AddEventListenerOptions | boolean): void;
|
||||
|
||||
/**
|
||||
* Raised if the image download errors.
|
||||
*/
|
||||
on(event: 'downloadError', callback: (args: DownloadError) => void, thisArg?: any);
|
||||
on(event: 'downloadError', callback: (args: DownloadError) => void, thisArg?: any, options?: AddEventListenerOptions | boolean): void;
|
||||
|
||||
//@private
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user