mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 08:49:27 -04:00
|
||
---|---|---|
.. | ||
BUILD.bazel | ||
index.d.ts | ||
package.json | ||
README.mdx | ||
tsconfig.json |
--- id: kibDevDocsOpsAmbientUiTypes slug: /kibana-dev-docs/ops/ambient-ui-types title: "@kbn/ambient-ui-types" description: A package holding ambient type definitions for files date: 2022-05-18 tags: ['kibana', 'dev', 'contributor', 'operations', 'ambient', 'ui', 'types'] --- This package holds ambient typescript definitions for files with extensions like `.html, .png, .svg, .mdx` that might get imported by Webpack and therefore needed. ## Plugins These types will automatically be included for plugins. ## Packages To include these types in a package: - add `"//packages/kbn-ambient-ui-types"` to the `RUNTIME_DEPS` portion of the `BUILD.bazel` file. - add `"//packages/kbn-ambient-ui-types:npm_module_types"` to the `TYPES_DEPS` portion of the `BUILD.bazel` file. - add `"@kbn/ambient-ui-types"` to the `types` portion of the `tsconfig.json` file.