Skip to content

Commit

Permalink
Make the JSON type names use forced camelCase for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 15, 2019
1 parent 0f273d7 commit 317908a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ export type TypedArray =
/**
Matches a JSON object.
*/
export type JSONObject = {[key: string]: JSONValue};
export type JsonObject = {[key: string]: JsonValue};

/**
Matches a JSON array.
*/
export interface JSONArray extends Array<JSONValue> {} // eslint-disable-line @typescript-eslint/no-empty-interface
export interface JsonArray extends Array<JsonValue> {} // eslint-disable-line @typescript-eslint/no-empty-interface

/**
Matches any valid JSON value.
*/
export type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;

/**
Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable).
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ See the [types file](index.d.ts) for complete docs.
- `Primitive` - Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
- `Class` - Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
- `TypedArray` - Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`.
- `JSONObject` - Matches a JSON object.
- `JSONArray` - Matches a JSON array.
- `JSONValue` - Matches any valid JSON value.
- `JsonObject` - Matches a JSON object.
- `JsonArray` - Matches a JSON array.
- `JsonValue` - Matches any valid JSON value.
- `ObservableLike` - Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable).

### Utilities
Expand Down

0 comments on commit 317908a

Please sign in to comment.