* Refactors properties table, implements typescript * Adds type info for imported variables file * Small fixes based on code review * Adds tests for new nested key/value table components * Removes variable reassignment * Fixes up styled component snapshots, uses mount instead of shallow * Small review fixes, adds typings to PropertiesTable index file * Small review fixes, changes method name * Fixes test after moving back to JSON file
17 lines
653 B
TypeScript
17 lines
653 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
// allow JSON files to be imported directly without TSLint errors
|
|
// see: https://github.com/palantir/tslint/issues/1264#issuecomment-228433367
|
|
// and: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts
|
|
declare module '*.json' {
|
|
const json: any;
|
|
export default json;
|
|
}
|
|
|
|
interface StringMap<T> {
|
|
[key: string]: T;
|
|
}
|