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; /**