kibana/packages/kbn-ambient-ui-types
Spencer 32491462a9
add kibana.jsonc files to existing packages (#138965)
* [packages] add kibana.jsonc files

* auto-migrate to kibana.jsonc

* support interactive pkg id selection too

* remove old codeowners entry

* skip codeowners generation when .github/CODEOWNERS doesn't exist

* fall back to format validation if user is offline

* update question style

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-08 13:31:57 -07:00
..
BUILD.bazel [typescript] Create Ambient Types package (#129368) 2022-04-06 19:21:24 -05:00
index.d.ts Added a gif module to be able to import gif files (#136015) 2022-07-08 17:43:10 +02:00
kibana.jsonc add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
package.json add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
README.mdx docs(NA): adding @kbn/ambient-ui-types into ops docs (#132482) 2022-05-18 15:24:19 -07:00
tsconfig.json [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00

---
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.