Skip to content

Commit

Permalink
chore(gh-pages): adjust package info
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Dec 4, 2019
1 parent a30e544 commit 8d8efde
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,24 @@
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/BowlingX/geschichte.git"
},
"bugs": {
"url": "https://github.com/BowlingX/geschichte/issues"
},
"homepage": "https://github.com/BowlingX/geschichte#readme",
"license": "MIT",
"keywords": [],
"keywords": [
"react",
"react-hooks",
"hooks",
"history",
"url",
"query-parameters"
],
"scripts": {
"describe": "npm-scripts-info",
"build": "run-s clean && run-p build:*",
Expand Down
7 changes: 4 additions & 3 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const applyDiffWithCreateQueriesFromPatch = (
*/
export const applyFlatConfigToState = (
config: MappedConfig,
queryValues: object,
queryValues: {readonly [index: string]:any},
ns: string,
state: object,
initialState: object
Expand Down Expand Up @@ -142,8 +142,9 @@ export const applyFlatConfigToState = (
* that can be used to generate a query string.
* @return a key/value object with the object containing the defined parameters as key.
*/
export const flattenConfig = (config: Config, path: readonly string[] = []) => {
return Object.keys(config).reduce((next, key) => {
export const flattenConfig =
(config: Config, path: readonly string[] = []): MappedConfig => {
return Object.keys(config).reduce((next: {readonly [index: string]:any}, key) => {
const v = config[key]
const nextPath: ReadonlyArray<string> = [...path, key]
if (typeof v === 'function') {
Expand Down

0 comments on commit 8d8efde

Please sign in to comment.