Skip to content

Commit

Permalink
fix: runtime field class methods return types (#200)
Browse files Browse the repository at this point in the history
There was a mismatch between the return types as defined in the JSDoc
comments and the implicit return types inferred by TypeScript.
  • Loading branch information
robdasilva authored Apr 14, 2024
1 parent a5a770b commit 8f73d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8926,15 +8926,15 @@ 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.
*
* @param {string} script
* @returns {void}
*/
script(script: string);
script(script: string): void;

/**
* Override default `toJSON` to return DSL representation for the `script`.
Expand Down

0 comments on commit 8f73d34

Please sign in to comment.