diff --git a/hasher/hasher-tests.ts b/hasher/hasher-tests.ts index 5e988c7601..e250f4dad5 100644 --- a/hasher/hasher-tests.ts +++ b/hasher/hasher-tests.ts @@ -11,4 +11,6 @@ hasher.init(); //initialize hasher (start listening for history changes) hasher.setHash('foo'); //change hash value (generates new history record) +hasher.appendHash = '?test=true'; + hasher.prependHash = '!'; //default value is "/" diff --git a/hasher/index.d.ts b/hasher/index.d.ts index b71b6b1d2b..180290145a 100644 --- a/hasher/index.d.ts +++ b/hasher/index.d.ts @@ -13,7 +13,7 @@ declare namespace HasherJs { // {string} hasher.appendHash // String that should always be added to the end of Hash value. - appendHash(): string; + appendHash: string; // default value: ''; // will be automatically removed from `hasher.getHash()`