decoders 2.0.1 → 2.0.2

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v2.0.2
2
+
3
+ - ![](./docs/assets/tiny-ts-logo.png) Fix TypeScript types for `formatShort` and
4
+ `formatInline` helper functions
5
+
1
6
  ## v2.0.1
2
7
 
3
8
  - ![](./docs/assets/tiny-ts-logo.png) **TypeScript-only:** Fix definition of JSONObject
package/format.d.ts CHANGED
@@ -2,5 +2,5 @@ import { Annotation } from './annotate';
2
2
 
3
3
  export type Formatter = (err: Annotation) => string | Error;
4
4
 
5
- export const formatInline: Formatter;
6
- export const formatShort: Formatter;
5
+ export function formatInline(err: Annotation): string;
6
+ export function formatShort(err: Annotation): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decoders",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Elegant and battle-tested validation library for type-safe input data (for TypeScript and Flow)",
5
5
  "license": "MIT",
6
6
  "repository": {