From 8f73d343b8400dbbec4028b82085353dfa0ce493 Mon Sep 17 00:00:00 2001 From: Robert Da Silva Date: Sun, 14 Apr 2024 16:26:03 +0200 Subject: [PATCH] fix: runtime field class methods return types (#200) There was a mismatch between the return types as defined in the JSDoc comments and the implicit return types inferred by TypeScript. --- src/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 48f7bb0..e9d7d48 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -8926,7 +8926,7 @@ declare namespace esb { * @param {string} type One of `boolean`, `composite`, `date`, `double`, `geo_point`, `ip`, `keyword`, `long`, `lookup`. * @returns {void} */ - type(type: 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup'); + type(type: 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup'): void; /** * Sets the source of the script. @@ -8934,7 +8934,7 @@ declare namespace esb { * @param {string} script * @returns {void} */ - script(script: string); + script(script: string): void; /** * Override default `toJSON` to return DSL representation for the `script`.