From ff17d67701655aa0f5195cce8d498bf8e053161d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Flemstr=C3=B6m?= Date: Wed, 19 Aug 2020 09:26:07 +0200 Subject: [PATCH] Add comments to exported types --- ts/kpt-functions/src/types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/kpt-functions/src/types.ts b/ts/kpt-functions/src/types.ts index 5d7dc4264..e118d0df6 100644 --- a/ts/kpt-functions/src/types.ts +++ b/ts/kpt-functions/src/types.ts @@ -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 {} +/** 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; /**