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