noImplicitAny: slate (#17681)

* Update slate types

* Fix noImplicitAny
This commit is contained in:
Tobias Skarhed
2019-06-20 20:41:01 +02:00
committed by Torkel Ödegaard
parent 49f0f0e89e
commit 219d711597
12 changed files with 99 additions and 37 deletions

View File

@@ -1,5 +1,4 @@
import { ComponentClass } from 'react';
import { Value } from 'slate';
import {
RawTimeRange,
DataQuery,
@@ -283,7 +282,7 @@ export interface HistoryItem<TQuery extends DataQuery = DataQuery> {
export abstract class LanguageProvider {
datasource: any;
request: (url) => Promise<any>;
request: (url: any) => Promise<any>;
/**
* Returns startTask that resolves with a task list when main syntax is loaded.
* Task list consists of secondary promises that load more detailed language features.
@@ -297,7 +296,8 @@ export interface TypeaheadInput {
prefix: string;
wrapperClasses: string[];
labelKey?: string;
value?: Value;
//Should be Value from slate
value?: any;
}
export interface TypeaheadOutput {