Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump TypeScript to v3.9 #67666

Merged
merged 103 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from 100 commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
a82dea3
add babel support for export type
mshustov May 28, 2020
1209ac8
bump ts version to 3.9.3
mshustov May 28, 2020
ac2bc71
rebuild kbn-pm
mshustov May 28, 2020
d3cd8a8
bump typescript-eslint
mshustov May 28, 2020
090b1b7
fix error in security plugin UI
mshustov May 28, 2020
31ce720
check export as works
mshustov May 28, 2020
652af9b
fix app migration type
mshustov May 28, 2020
870eb81
use correct test subj attribute
mshustov May 28, 2020
e3e68f3
fix errors from the old PR
mshustov May 28, 2020
be07879
embeddable is already passed in props
mshustov May 28, 2020
8cae218
explicitly define type of fetch
mshustov May 28, 2020
675a225
add some types for viz
mshustov May 28, 2020
e168c62
fix fetch type p.2
mshustov May 28, 2020
97323f9
add null to allow spreading without type errors due to override
mshustov May 28, 2020
82ab3ef
add type guard to fix type error
mshustov May 28, 2020
8394514
cast to any, since cannot assign unknown
mshustov May 28, 2020
9f68529
add timestamp to known types
mshustov May 28, 2020
72f2296
fix type error in fetch
mshustov May 28, 2020
e9ace30
fix type error. id is always defined in attibutes
mshustov May 28, 2020
dfa2574
declare a type
mshustov May 28, 2020
dd7f2c8
move ts-ignore to the lines with errors
mshustov May 28, 2020
f294214
declare tuple type explicitly
mshustov May 28, 2020
e84eb25
mute type error. cannot assign unknown
mshustov May 28, 2020
3fe70e4
fix errors. id is always defined
mshustov May 28, 2020
a482090
fix error type
mshustov May 28, 2020
09d5706
fix override errors. id is always defined
mshustov May 28, 2020
4dd6549
fix error. extends any doesn't work anymore
mshustov May 28, 2020
796d839
fix type error. type is always defined
mshustov May 28, 2020
1889b6c
env doesn't always contain values
mshustov May 28, 2020
991ddb3
fix type error
mshustov May 28, 2020
dc3ce73
cast to string
mshustov May 28, 2020
96771a2
add: logs is already declared in getNodeLogsUrl
mshustov May 28, 2020
f63dba3
state is already passed in props
mshustov May 28, 2020
9398916
fix some errors in timelion
mshustov May 28, 2020
c2a91ff
number of fragments is always defined
mshustov May 28, 2020
8490984
'absolute' is not just string, but value
mshustov May 28, 2020
f77c5c3
TEMP: option is always defined
mshustov May 28, 2020
9a99b84
always true if cast to promise manually
mshustov May 28, 2020
4cdebff
both props are always defined
mshustov May 28, 2020
f17e3b9
explicitly define returned SO type
mshustov May 28, 2020
96fac96
workaround type
mshustov May 28, 2020
997e7fa
bump tslib to be compatible with ts v3.9
mshustov May 28, 2020
8b2ecc8
test private property
mshustov May 28, 2020
a7bcdcf
rebuild kbn-pm
mshustov May 28, 2020
626b710
Fix ts errors for beats management
nchaulet May 28, 2020
baa6209
Merge pull request #1 from nchaulet/ts-update-beats-cm
mshustov May 29, 2020
20e8e47
Fix type inference broken by the TS 3.9 upgrade
weltenwort May 29, 2020
315c7a0
Fix ingest manager saved object attributes typings
nchaulet May 29, 2020
ad99021
Fix TS errors in cross_cluster_replication and index_management.
cjcenizal May 29, 2020
efe7b08
Fix TS error in Watcher.
cjcenizal May 29, 2020
dea0122
Merge pull request #3 from nchaulet/fix-ingest-manager-ts-upgrade
mshustov May 30, 2020
2b4a810
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 2, 2020
bc4ef14
roll back colorRange wrong type
mshustov Jun 2, 2020
c1d22c1
Merge branch 'master' into ts-update
mshustov Jun 2, 2020
fe04a00
Merge pull request #2 from weltenwort/logs-metrics-ui-update-to-ts-3-9
mshustov Jun 2, 2020
8fd55b2
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 2, 2020
a75a205
fix security plugin types
legrego Jun 2, 2020
3caa679
TypeScript 3.9 fixes for APM
smith Jun 2, 2020
ffe3338
Fix ColorRange types.
walterra Jun 3, 2020
3c7e50b
fix actions & alerts errors. ByGidi
mshustov Jun 4, 2020
5a790f7
Merge branch 'master' into ts-update
mshustov Jun 4, 2020
7b39e4f
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 4, 2020
f8b8e99
fix lists error
mshustov Jun 4, 2020
535afb3
More APM fixes
smith Jun 4, 2020
cf406fb
Merge branch 'ts-update' of https://github.com/restrry/kibana into ts…
smith Jun 4, 2020
beee8d2
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 4, 2020
3d39cd5
fix platform type error
mshustov Jun 4, 2020
7579678
Fix visualizations types.
lukeelmers Jun 4, 2020
fa094a6
Fix data plugin types.
lukeelmers Jun 4, 2020
4113e83
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 5, 2020
888b90b
Merge branch 'master' into ts-update
mshustov Jun 5, 2020
7951f77
bump TS version to 3.9.5
mshustov Jun 5, 2020
403205c
Fix telemetry TS errors
afharo Jun 5, 2020
90cd6d5
Fix dashboard code
Jun 5, 2020
4a4bd7f
Adding Canvas Fixes for TS 3.9
clintandrewhall Jun 5, 2020
6b920ab
Fix case and security_solution types
patrykkopycinski Jun 7, 2020
ff64040
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 8, 2020
02516af
Merge branch 'master' into ts-update
mshustov Jun 8, 2020
68c5c91
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 8, 2020
a72a9e3
roll back to the old export syntax. new one might cause problems in a…
mshustov Jun 8, 2020
987b4a0
update docs
mshustov Jun 8, 2020
368197f
Fix timelion code
Jun 8, 2020
aac2380
Fix meta
patrykkopycinski Jun 8, 2020
b0b4d83
Fix types
patrykkopycinski Jun 8, 2020
e2d6e7d
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 9, 2020
f25e739
Merge branch 'master' into ts-update
mshustov Jun 9, 2020
b49dad5
fix type errors om ingest_manager
mshustov Jun 9, 2020
fdb016c
bump babel deps
mshustov Jun 9, 2020
3256c88
enable private props & methods syntax
mshustov Jun 9, 2020
4ff4b54
update kbn-pm dist
mshustov Jun 9, 2020
16a8300
whitelist 0BSD license
mshustov Jun 9, 2020
e98c40a
use @babel/plugin-proposal-private-methods in default set as well
mshustov Jun 9, 2020
04d9594
disable new babel plugins
mshustov Jun 9, 2020
64f08da
Revert "disable new babel plugins"
mshustov Jun 9, 2020
4218caf
cleanup security_solution types
patrykkopycinski Jun 10, 2020
e45065c
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 10, 2020
87a2846
Merge branch 'master' into ts-update
mshustov Jun 10, 2020
babcc16
Merge branch 'master' into ts-update
mshustov Jun 10, 2020
37e3263
Fixes type error for newer TypeScript
FrankHassanabad Jun 10, 2020
cf62228
Merge pull request #4 from FrankHassanabad/fix-for-type
mshustov Jun 10, 2020
a887ff0
Merge branch 'master' into ts-update
elasticmachine Jun 11, 2020
4baf675
Merge remote-tracking branch 'origin/ts-update' into ts-update
mshustov Jun 11, 2020
d26ff2c
update docs
mshustov Jun 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Creates multiple documents at once
<b>Signature:</b>

```typescript
bulkCreate: (objects?: SavedObjectsBulkCreateObject<unknown>[], options?: SavedObjectsBulkCreateOptions) => Promise<SavedObjectsBatchResponse<unknown>>;
bulkCreate: (objects?: SavedObjectsBulkCreateObject[], options?: SavedObjectsBulkCreateOptions) => Promise<SavedObjectsBatchResponse<unknown>>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Returns an array of objects by id
<b>Signature:</b>

```typescript
bulkGet: (objects?: {
bulkGet: (objects?: Array<{
id: string;
type: string;
}[]) => Promise<SavedObjectsBatchResponse<unknown>>;
}>) => Promise<SavedObjectsBatchResponse<unknown>>;
```

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Deletes an object
<b>Signature:</b>

```typescript
delete: (type: string, id: string) => Promise<{}>;
delete: (type: string, id: string) => ReturnType<SavedObjectsApi['delete']>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Search for objects
<b>Signature:</b>

```typescript
find: <T = unknown>(options: Pick<SavedObjectFindOptionsServer, "search" | "filter" | "type" | "page" | "perPage" | "sortField" | "fields" | "searchFields" | "hasReference" | "defaultSearchOperator">) => Promise<SavedObjectsFindResponsePublic<T>>;
find: <T = unknown>(options: SavedObjectsFindOptions) => Promise<SavedObjectsFindResponsePublic<T>>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ The constructor for this class is marked as internal. Third-party code should no

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [bulkCreate](./kibana-plugin-core-public.savedobjectsclient.bulkcreate.md) | | <code>(objects?: SavedObjectsBulkCreateObject&lt;unknown&gt;[], options?: SavedObjectsBulkCreateOptions) =&gt; Promise&lt;SavedObjectsBatchResponse&lt;unknown&gt;&gt;</code> | Creates multiple documents at once |
| [bulkGet](./kibana-plugin-core-public.savedobjectsclient.bulkget.md) | | <code>(objects?: {</code><br/><code> id: string;</code><br/><code> type: string;</code><br/><code> }[]) =&gt; Promise&lt;SavedObjectsBatchResponse&lt;unknown&gt;&gt;</code> | Returns an array of objects by id |
| [bulkCreate](./kibana-plugin-core-public.savedobjectsclient.bulkcreate.md) | | <code>(objects?: SavedObjectsBulkCreateObject[], options?: SavedObjectsBulkCreateOptions) =&gt; Promise&lt;SavedObjectsBatchResponse&lt;unknown&gt;&gt;</code> | Creates multiple documents at once |
| [bulkGet](./kibana-plugin-core-public.savedobjectsclient.bulkget.md) | | <code>(objects?: Array&lt;{</code><br/><code> id: string;</code><br/><code> type: string;</code><br/><code> }&gt;) =&gt; Promise&lt;SavedObjectsBatchResponse&lt;unknown&gt;&gt;</code> | Returns an array of objects by id |
| [create](./kibana-plugin-core-public.savedobjectsclient.create.md) | | <code>&lt;T = unknown&gt;(type: string, attributes: T, options?: SavedObjectsCreateOptions) =&gt; Promise&lt;SimpleSavedObject&lt;T&gt;&gt;</code> | Persists an object |
| [delete](./kibana-plugin-core-public.savedobjectsclient.delete.md) | | <code>(type: string, id: string) =&gt; Promise&lt;{}&gt;</code> | Deletes an object |
| [find](./kibana-plugin-core-public.savedobjectsclient.find.md) | | <code>&lt;T = unknown&gt;(options: Pick&lt;SavedObjectFindOptionsServer, &quot;search&quot; &#124; &quot;filter&quot; &#124; &quot;type&quot; &#124; &quot;page&quot; &#124; &quot;perPage&quot; &#124; &quot;sortField&quot; &#124; &quot;fields&quot; &#124; &quot;searchFields&quot; &#124; &quot;hasReference&quot; &#124; &quot;defaultSearchOperator&quot;&gt;) =&gt; Promise&lt;SavedObjectsFindResponsePublic&lt;T&gt;&gt;</code> | Search for objects |
| [delete](./kibana-plugin-core-public.savedobjectsclient.delete.md) | | <code>(type: string, id: string) =&gt; ReturnType&lt;SavedObjectsApi['delete']&gt;</code> | Deletes an object |
| [find](./kibana-plugin-core-public.savedobjectsclient.find.md) | | <code>&lt;T = unknown&gt;(options: SavedObjectsFindOptions) =&gt; Promise&lt;SavedObjectsFindResponsePublic&lt;T&gt;&gt;</code> | Search for objects |
| [get](./kibana-plugin-core-public.savedobjectsclient.get.md) | | <code>&lt;T = unknown&gt;(type: string, id: string) =&gt; Promise&lt;SimpleSavedObject&lt;T&gt;&gt;</code> | Fetches a single object |

## Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Creates an href (string) to the location. If `prependBasePath` is true (default)
```typescript
createHref: (location: LocationDescriptorObject<HistoryLocationState>, { prependBasePath }?: {
prependBasePath?: boolean | undefined;
}) => string;
}) => Href;
```
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export declare class ScopedHistory<HistoryLocationState = unknown> implements Hi
| --- | --- | --- | --- |
| [action](./kibana-plugin-core-public.scopedhistory.action.md) | | <code>Action</code> | The last action dispatched on the history stack. |
| [block](./kibana-plugin-core-public.scopedhistory.block.md) | | <code>(prompt?: string &#124; boolean &#124; History.TransitionPromptHook&lt;HistoryLocationState&gt; &#124; undefined) =&gt; UnregisterCallback</code> | Not supported. Use [AppMountParameters.onAppLeave](./kibana-plugin-core-public.appmountparameters.onappleave.md)<!-- -->. |
| [createHref](./kibana-plugin-core-public.scopedhistory.createhref.md) | | <code>(location: LocationDescriptorObject&lt;HistoryLocationState&gt;, { prependBasePath }?: {</code><br/><code> prependBasePath?: boolean &#124; undefined;</code><br/><code> }) =&gt; string</code> | Creates an href (string) to the location. If <code>prependBasePath</code> is true (default), it will prepend the location's path with the scoped history basePath. |
| [createHref](./kibana-plugin-core-public.scopedhistory.createhref.md) | | <code>(location: LocationDescriptorObject&lt;HistoryLocationState&gt;, { prependBasePath }?: {</code><br/><code> prependBasePath?: boolean &#124; undefined;</code><br/><code> }) =&gt; Href</code> | Creates an href (string) to the location. If <code>prependBasePath</code> is true (default), it will prepend the location's path with the scoped history basePath. |
| [createSubHistory](./kibana-plugin-core-public.scopedhistory.createsubhistory.md) | | <code>&lt;SubHistoryLocationState = unknown&gt;(basePath: string) =&gt; ScopedHistory&lt;SubHistoryLocationState&gt;</code> | Creates a <code>ScopedHistory</code> for a subpath of this <code>ScopedHistory</code>. Useful for applications that may have sub-apps that do not need access to the containing application's history. |
| [go](./kibana-plugin-core-public.scopedhistory.go.md) | | <code>(n: number) =&gt; void</code> | Send the user forward or backwards in the history stack. |
| [goBack](./kibana-plugin-core-public.scopedhistory.goback.md) | | <code>() =&gt; void</code> | Send the user one location back in the history stack. Equivalent to calling [ScopedHistory.go(-1)](./kibana-plugin-core-public.scopedhistory.go.md)<!-- -->. If no more entries are available backwards, this is a no-op. |
| [goForward](./kibana-plugin-core-public.scopedhistory.goforward.md) | | <code>() =&gt; void</code> | Send the user one location forward in the history stack. Equivalent to calling [ScopedHistory.go(1)](./kibana-plugin-core-public.scopedhistory.go.md)<!-- -->. If no more entries are available forwards, this is a no-op. |
| [length](./kibana-plugin-core-public.scopedhistory.length.md) | | <code>number</code> | The number of entries in the history stack, including all entries forwards and backwards from the current location. |
| [listen](./kibana-plugin-core-public.scopedhistory.listen.md) | | <code>(listener: (location: Location&lt;HistoryLocationState&gt;, action: Action) =&gt; void) =&gt; UnregisterCallback</code> | Adds a listener for location updates. |
| [location](./kibana-plugin-core-public.scopedhistory.location.md) | | <code>Location&lt;HistoryLocationState&gt;</code> | The current location of the history stack. |
| [push](./kibana-plugin-core-public.scopedhistory.push.md) | | <code>(pathOrLocation: string &#124; LocationDescriptorObject&lt;HistoryLocationState&gt;, state?: HistoryLocationState &#124; undefined) =&gt; void</code> | Pushes a new location onto the history stack. If there are forward entries in the stack, they will be removed. |
| [replace](./kibana-plugin-core-public.scopedhistory.replace.md) | | <code>(pathOrLocation: string &#124; LocationDescriptorObject&lt;HistoryLocationState&gt;, state?: HistoryLocationState &#124; undefined) =&gt; void</code> | Replaces the current location in the history stack. Does not remove forward or backward entries. |
| [push](./kibana-plugin-core-public.scopedhistory.push.md) | | <code>(pathOrLocation: Path &#124; LocationDescriptorObject&lt;HistoryLocationState&gt;, state?: HistoryLocationState &#124; undefined) =&gt; void</code> | Pushes a new location onto the history stack. If there are forward entries in the stack, they will be removed. |
| [replace](./kibana-plugin-core-public.scopedhistory.replace.md) | | <code>(pathOrLocation: Path &#124; LocationDescriptorObject&lt;HistoryLocationState&gt;, state?: HistoryLocationState &#124; undefined) =&gt; void</code> | Replaces the current location in the history stack. Does not remove forward or backward entries. |

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Pushes a new location onto the history stack. If there are forward entries in th
<b>Signature:</b>

```typescript
push: (pathOrLocation: string | LocationDescriptorObject<HistoryLocationState>, state?: HistoryLocationState | undefined) => void;
push: (pathOrLocation: Path | LocationDescriptorObject<HistoryLocationState>, state?: HistoryLocationState | undefined) => void;
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Replaces the current location in the history stack. Does not remove forward or b
<b>Signature:</b>

```typescript
replace: (pathOrLocation: string | LocationDescriptorObject<HistoryLocationState>, state?: HistoryLocationState | undefined) => void;
replace: (pathOrLocation: Path | LocationDescriptorObject<HistoryLocationState>, state?: HistoryLocationState | undefined) => void;
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ returns `basePath` value, specific for an incoming request.
<b>Signature:</b>

```typescript
get: (request: LegacyRequest | KibanaRequest<unknown, unknown, unknown, any>) => string;
get: (request: KibanaRequest | LegacyRequest) => string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ The constructor for this class is marked as internal. Third-party code should no

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [get](./kibana-plugin-core-server.basepath.get.md) | | <code>(request: LegacyRequest &#124; KibanaRequest&lt;unknown, unknown, unknown, any&gt;) =&gt; string</code> | returns <code>basePath</code> value, specific for an incoming request. |
| [get](./kibana-plugin-core-server.basepath.get.md) | | <code>(request: KibanaRequest &#124; LegacyRequest) =&gt; string</code> | returns <code>basePath</code> value, specific for an incoming request. |
| [prepend](./kibana-plugin-core-server.basepath.prepend.md) | | <code>(path: string) =&gt; string</code> | Prepends <code>path</code> with the basePath. |
| [remove](./kibana-plugin-core-server.basepath.remove.md) | | <code>(path: string) =&gt; string</code> | Removes the prepended basePath from the <code>path</code>. |
| [serverBasePath](./kibana-plugin-core-server.basepath.serverbasepath.md) | | <code>string</code> | returns the server's basePath<!-- -->See [BasePath.get](./kibana-plugin-core-server.basepath.get.md) for getting the basePath value for a specific request |
| [set](./kibana-plugin-core-server.basepath.set.md) | | <code>(request: LegacyRequest &#124; KibanaRequest&lt;unknown, unknown, unknown, any&gt;, requestSpecificBasePath: string) =&gt; void</code> | sets <code>basePath</code> value, specific for an incoming request. |
| [set](./kibana-plugin-core-server.basepath.set.md) | | <code>(request: KibanaRequest &#124; LegacyRequest, requestSpecificBasePath: string) =&gt; void</code> | sets <code>basePath</code> value, specific for an incoming request. |

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sets `basePath` value, specific for an incoming request.
<b>Signature:</b>

```typescript
set: (request: LegacyRequest | KibanaRequest<unknown, unknown, unknown, any>, requestSpecificBasePath: string) => void;
set: (request: KibanaRequest | LegacyRequest, requestSpecificBasePath: string) => void;
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

```typescript
AggGroupLabels: {
[AggGroupNames.Buckets]: string;
[AggGroupNames.Metrics]: string;
[AggGroupNames.None]: string;
buckets: string;
metrics: string;
none: string;
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Get the KbnFieldType name for an esType string
<b>Signature:</b>

```typescript
castEsToKbnFieldTypeName: (esType: string) => KBN_FIELD_TYPES
castEsToKbnFieldTypeName: (esType: ES_FIELD_TYPES | string) => KBN_FIELD_TYPES
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,9 @@ Helper to setup two-way syncing of global data and a state container
<b>Signature:</b>

```typescript
connectToQueryState: <S extends QueryState>({ timefilter: { timefilter }, filterManager, state$, }: Pick<{
filterManager: import("..").FilterManager;
timefilter: import("..").TimefilterSetup;
state$: import("rxjs").Observable<{
changes: QueryStateChange;
state: QueryState;
}>;
savedQueries: import("..").SavedQueryService;
} | {
filterManager: import("..").FilterManager;
timefilter: import("..").TimefilterSetup;
state$: import("rxjs").Observable<{
changes: QueryStateChange;
state: QueryState;
}>;
}, "state$" | "timefilter" | "filterManager">, stateContainer: BaseStateContainer<S>, syncConfig: {
time?: boolean | undefined;
refreshInterval?: boolean | undefined;
filters?: boolean | FilterStateStore | undefined;
connectToQueryState: <S extends QueryState>({ timefilter: { timefilter }, filterManager, state$, }: Pick<QueryStart | QuerySetup, 'timefilter' | 'filterManager' | 'state$'>, stateContainer: BaseStateContainer<S>, syncConfig: {
time?: boolean;
refreshInterval?: boolean;
filters?: FilterStateStore | boolean;
}) => () => void
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<b>Signature:</b>

```typescript
createSavedQueryService: (savedObjectsClient: Pick<import("../../../../../core/public").SavedObjectsClient, "update" | "find" | "get" | "delete" | "create" | "bulkCreate" | "bulkGet" | "bulkUpdate">) => SavedQueryService
createSavedQueryService: (savedObjectsClient: SavedObjectsClientContract) => SavedQueryService
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

```typescript
extractReferences: (state: SearchSourceFields) => [SearchSourceFields & {
indexRefName?: string | undefined;
indexRefName?: string;
}, SavedObjectReference[]]
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,7 @@ Helper to setup syncing of global data with the URL
<b>Signature:</b>

```typescript
syncQueryStateWithUrl: (query: Pick<{
filterManager: import("..").FilterManager;
timefilter: import("..").TimefilterSetup;
state$: import("rxjs").Observable<{
changes: import("./types").QueryStateChange;
state: QueryState;
}>;
savedQueries: import("..").SavedQueryService;
} | {
filterManager: import("..").FilterManager;
timefilter: import("..").TimefilterSetup;
state$: import("rxjs").Observable<{
changes: import("./types").QueryStateChange;
state: QueryState;
}>;
}, "state$" | "timefilter" | "filterManager">, kbnUrlStateStorage: IKbnUrlStateStorage) => {
syncQueryStateWithUrl: (query: Pick<QueryStart | QuerySetup, 'filterManager' | 'timefilter' | 'state$'>, kbnUrlStateStorage: IKbnUrlStateStorage) => {
stop: () => void;
hasInheritedQueryFromUrl: boolean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Get the KbnFieldType name for an esType string
<b>Signature:</b>

```typescript
castEsToKbnFieldTypeName: (esType: string) => KBN_FIELD_TYPES
castEsToKbnFieldTypeName: (esType: ES_FIELD_TYPES | string) => KBN_FIELD_TYPES
```
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
},
"resolutions": {
"**/@types/node": ">=10.17.17 <10.20.0",
"**/@types/react": "^16.9.19",
"**/@types/react": "^16.9.36",
"**/@types/react-router": "^5.1.3",
"**/@types/hapi": "^17.0.18",
"**/@types/angular": "^1.6.56",
"**/@types/hoist-non-react-statics": "^3.3.1",
"**/@types/chai": "^4.2.11",
"**/typescript": "3.7.2",
"**/typescript": "3.9.5",
"**/graphql-toolkit/lodash": "^4.17.13",
"**/hoist-non-react-statics": "^3.3.2",
"**/isomorphic-git/**/base64-js": "^1.2.1",
Expand Down Expand Up @@ -120,9 +120,9 @@
]
},
"dependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
"@babel/register": "^7.9.0",
"@babel/core": "^7.10.2",
"@babel/plugin-transform-modules-commonjs": "^7.10.1",
"@babel/register": "^7.10.1",
"@elastic/apm-rum": "^5.1.1",
"@elastic/charts": "19.2.0",
"@elastic/datemath": "5.0.3",
Expand Down Expand Up @@ -274,7 +274,7 @@
"tinygradient": "0.4.3",
"tinymath": "1.2.1",
"topojson-client": "3.0.0",
"tslib": "^1.9.3",
"tslib": "^2.0.0",
"type-detect": "^4.0.8",
"ui-select": "0.19.8",
"url-loader": "2.2.0",
Expand All @@ -293,8 +293,8 @@
"yauzl": "2.10.0"
},
"devDependencies": {
"@babel/parser": "^7.9.3",
"@babel/types": "^7.9.0",
"@babel/parser": "^7.10.2",
"@babel/types": "^7.10.2",
"@elastic/elasticsearch": "^7.4.0",
"@elastic/eslint-config-kibana": "0.15.0",
"@elastic/eslint-plugin-eui": "0.0.2",
Expand Down Expand Up @@ -372,8 +372,8 @@
"@types/podium": "^1.0.0",
"@types/prop-types": "^15.5.3",
"@types/reach__router": "^1.2.6",
"@types/react": "^16.9.19",
"@types/react-dom": "^16.9.5",
"@types/react": "^16.9.36",
"@types/react-dom": "^16.9.8",
"@types/react-grid-layout": "^0.16.7",
"@types/react-redux": "^7.1.7",
"@types/react-resize-detector": "^4.0.1",
Expand All @@ -396,8 +396,8 @@
"@types/uuid": "^3.4.4",
"@types/vinyl-fs": "^2.4.11",
"@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"angular-mocks": "^1.7.9",
"archiver": "^3.1.1",
"axe-core": "^3.4.1",
Expand Down Expand Up @@ -497,7 +497,7 @@
"supertest-as-promised": "^4.0.2",
"tape": "^4.13.0",
"tree-kill": "^1.2.2",
"typescript": "3.7.2",
"typescript": "3.9.5",
"typings-tester": "^0.3.2",
"vinyl-fs": "^3.0.3",
"xml2js": "^0.4.22",
Expand All @@ -508,4 +508,4 @@
"node": "10.21.0",
"yarn": "^1.21.1"
}
}
}
6 changes: 3 additions & 3 deletions packages/elastic-datemath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"kbn:watch": "yarn build --watch"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/preset-env": "^7.9.0",
"@babel/cli": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"babel-plugin-add-module-exports": "^1.0.2",
"moment": "^2.24.0"
},
"dependencies": {
"tslib": "^1.9.3"
"tslib": "^2.0.0"
},
"peerDependencies": {
"moment": "^2.24.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-kibana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/elastic/eslint-config-kibana#readme",
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.8.0",
"eslint-plugin-babel": "^5.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/kbn-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"kbn:watch": "node scripts/build --source-maps --watch"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/cli": "^7.10.1",
"@kbn/dev-utils": "1.0.0",
"@kbn/babel-preset": "1.0.0",
"typescript": "3.7.2"
"typescript": "3.9.5"
}
}
6 changes: 3 additions & 3 deletions packages/kbn-babel-code-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"kbn:watch": "yarn build --watch"
},
"devDependencies": {
"@babel/cli": "^7.8.4"
"@babel/cli": "^7.10.1"
},
"dependencies": {
"@kbn/babel-preset": "1.0.0",
"@babel/parser": "^7.9.3",
"@babel/traverse": "^7.9.0",
"@babel/parser": "^7.10.2",
"@babel/traverse": "^7.10.1",
"lodash": "^4.17.15"
}
}
2 changes: 2 additions & 0 deletions packages/kbn-babel-preset/common_babel_parser_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = {
plugins: [
'asyncGenerators',
'classProperties',
'classPrivateProperties',
'classPrivateMethods',
'dynamicImport',
'exportDefaultFrom',
'exportNamespaceFrom',
Expand Down
Loading