Skip to content

Commit

Permalink
Typescript search embeddable (elastic#26863) (elastic#27052)
Browse files Browse the repository at this point in the history
* typescript search embeddable

* Add a comment
  • Loading branch information
stacey-gammon authored Dec 12, 2018
1 parent b111074 commit 6211eb2
Show file tree
Hide file tree
Showing 10 changed files with 376 additions and 229 deletions.
7 changes: 6 additions & 1 deletion packages/elastic-datemath/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ declare const datemath: {
unitsAsc: Unit[];
unitsDesc: Unit[];

/**
* Parses a string into a moment object. The string can be something like "now - 15m".
* @param options.forceNow If this optional parameter is supplied, "now" will be treated as this
* date, rather than the real "now".
*/
parse(
input: string,
options?: {
roundUp?: boolean;
forceNow?: boolean;
forceNow?: Date;
momentInstance?: typeof moment;
}
): moment.Moment | undefined;
Expand Down

This file was deleted.

Loading

0 comments on commit 6211eb2

Please sign in to comment.