mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
mark parameters optional
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
export class Storage {
|
export class Storage {
|
||||||
private _strategy: any;
|
private _strategy: any;
|
||||||
|
|
||||||
constructor(strategyCls: IStorageEngine, options: any) {
|
constructor(strategyCls: IStorageEngine, options?: any) {
|
||||||
this._strategy = new strategyCls(options);
|
this._strategy = new strategyCls(options);
|
||||||
}
|
}
|
||||||
get(key: string): any {
|
get(key: string): any {
|
||||||
@ -33,7 +33,7 @@ export class Storage {
|
|||||||
remove(key: string) {
|
remove(key: string) {
|
||||||
return this._strategy.remove(key);
|
return this._strategy.remove(key);
|
||||||
}
|
}
|
||||||
query(query: string, params: any) {
|
query(query: string, params?: any) {
|
||||||
return this._strategy.query(query, params);
|
return this._strategy.query(query, params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user