Convert mappings to TypeScript (#32842) (#33138)

* Convert mappings to TypeScript

* Use any for FieldMapping

* Revert "Use any for FieldMapping"

This reverts commit 2042601f42.

* Use union type for FieldMapping

* Wrap toPath inside module declaration
This commit is contained in:
Mike Côté 2019-03-13 12:24:26 -04:00 committed by GitHub
parent 26ffdccded
commit c31b59cee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 196 additions and 149 deletions

24
typings/lodash.topath/index.d.ts vendored Normal file
View file

@ -0,0 +1,24 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
declare module 'lodash/internal/toPath' {
function toPath(value: string | string[]): string[]
export = toPath;
}