narraleaf-react 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,4 +124,7 @@ export declare class MultiLock {
124
124
  }
125
125
  export declare function onlyIf<T>(condition: boolean, value: T, fallback?: object): T | object;
126
126
  export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): T;
127
+ export declare function entriesForEach<T extends object, V = undefined>(obj: T, handler: {
128
+ [K in keyof T]: (value: Exclude<T[K], V>, key: K) => void;
129
+ }, validate?: (value: any, key: string) => boolean): void;
127
130
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narraleaf-react",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "A React visual novel player framework",
5
5
  "main": "./dist/main.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,8 +12,7 @@
12
12
  "postbuild": "tsc-alias -p tsconfig.json",
13
13
  "lint": "eslint \"./src/**/*.{ts,tsx,js,jsx}\"",
14
14
  "lint:fix": "eslint --fix \"./src/**/*.{ts,tsx,js,jsx}\"",
15
- "prepublish": "npm run lint && rimraf dist && webpack --config webpack.config.js && tsc-alias -p tsconfig.json",
16
- "publish": "npm publish",
15
+ "publish": "npm run lint && rimraf dist && webpack --config webpack.config.js && tsc-alias -p tsconfig.json && npm publish",
17
16
  "typedoc": "typedoc src/index.ts --out doc",
18
17
  "prepare": "husky"
19
18
  },