mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 19:52:35 +08:00
Docs: run the api-extractor on master to update docs (#23726)
* regenerated packages docs. * fixed spelling issues. * fixed spelling issues.
This commit is contained in:
@ -15,7 +15,7 @@ draft = true
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
function isMathString(text: string | DateTime | Date): boolean;
|
||||
export declare function isMathString(text: string | DateTime | Date): boolean;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
|
@ -17,7 +17,7 @@ Checks if text is a valid date which in this context means that it is either a M
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
function isValid(text: string | DateTime): boolean;
|
||||
export declare function isValid(text: string | DateTime): boolean;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
|
@ -17,7 +17,7 @@ Parses different types input to a moment instance. There is a specific formattin
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
function parse(text: string | DateTime | Date, roundUp?: boolean, timezone?: TimeZone): DateTime | undefined;
|
||||
export declare function parse(text?: string | DateTime | Date | null, roundUp?: boolean, timezone?: TimeZone): DateTime | undefined;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
@ -29,9 +29,9 @@ const { parse } = dateMath;
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| text | <code>string | DateTime | Date</code> | |
|
||||
| roundUp | <code>boolean</code> | |
|
||||
| timezone | <code>TimeZone</code> | |
|
||||
| text | <code>string | DateTime | Date | null</code> | |
|
||||
| roundUp | <code>boolean</code> | See parseDateMath function. |
|
||||
| timezone | <code>TimeZone</code> | Only string 'utc' is acceptable here, for anything else, local timezone is used. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
|
@ -17,7 +17,7 @@ Parses math part of the time string and shifts supplied time according to that m
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
function parseDateMath(mathString: string, time: any, roundUp?: boolean): DateTime | undefined;
|
||||
export declare function parseDateMath(mathString: string, time: any, roundUp?: boolean): DateTime | undefined;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
@ -31,7 +31,7 @@ const { parseDateMath } = dateMath;
|
||||
| --- | --- | --- |
|
||||
| mathString | <code>string</code> | |
|
||||
| time | <code>any</code> | |
|
||||
| roundUp | <code>boolean</code> | |
|
||||
| roundUp | <code>boolean</code> | If true it will round the time to endOf time unit, otherwise to startOf time unit. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
|
Reference in New Issue
Block a user