Skip to content

Commit

Permalink
Update and/or configure type declarations. (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Feb 17, 2018
1 parent 829bedc commit 43219ad
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 118 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before_script:
- >-
npm run update-types && git diff --exit-code || (echo -e
'\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run
update-types".' &&false)
update-types".' && false)
env:
global:
- secure: >-
Expand Down
18 changes: 9 additions & 9 deletions iron-localstorage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,32 +102,32 @@ interface IronLocalstorageElement extends Polymer.Element {
* True if value has been loaded
*/
_loaded: boolean|null|undefined;
ready(): any;
attached(): any;
detached(): any;
_handleStorage(ev: any): any;
_trySaveValue(): any;
_debounceReload(): any;
ready(): void;
attached(): void;
detached(): void;
_handleStorage(ev: any): void;
_trySaveValue(): void;
_debounceReload(): void;

/**
* Loads the value again. Use if you modify
* localStorage using DOM calls, and want to
* keep this element in sync.
*/
reload(): any;
reload(): void;

/**
* loads value from local storage
*
* @param externalChange true if loading changes from a different window
*/
_load(externalChange?: boolean): any;
_load(externalChange?: boolean): void;

/**
* Saves the value to localStorage. Call to save if autoSaveDisabled is set.
* If `value` is null or undefined, deletes localStorage.
*/
save(): any;
save(): void;
}

interface HTMLElementTagNameMap {
Expand Down
Loading

0 comments on commit 43219ad

Please sign in to comment.