Skip to content

Commit

Permalink
Add comments to exported types
Browse files Browse the repository at this point in the history
  • Loading branch information
dflemstr committed Aug 19, 2020
1 parent 91aafe7 commit ff17d67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ts/kpt-functions/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,15 @@ export interface Result {
*/
export type Severity = 'error' | 'warn' | 'info';

/** A plain old JSON array according to ECMA-404. */
export interface JsonArray extends Array<Json> {}

/** A plain old JSON object/map according to ECMA-404. */
export interface JsonMap {
[field: string]: Json;
}

/** Any plain old JSON value according to ECMA-404. */
export type Json = null | boolean | number | string | JsonArray | JsonMap;

/**
Expand Down

0 comments on commit ff17d67

Please sign in to comment.