docs(NA): adding @kbn/ambient-storybook-types into ops docs (#132483)

This commit is contained in:
Tiago Costa 2022-05-19 00:51:07 +01:00 committed by GitHub
parent b29c645bda
commit d8a62589b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View file

@ -43,6 +43,7 @@ layout: landing
{ pageId: "kibDevDocsToolingLog" },
{ pageId: "kibDevDocsOpsJestSerializers"},
{ pageId: "kibDevDocsOpsExpect" },
{ pageId: "kibDevDocsOpsAmbientStorybookTypes" },
{ pageId: "kibDevDocsOpsAmbientUiTypes"},
]}
/>

View file

@ -197,8 +197,9 @@
"label": "Utilities",
"items": [
{ "id": "kibDevDocsToolingLog" },
{ "id": "kibDevDocsOpsJestSerializers"},
{ "id": "kibDevDocsOpsJestSerializers" },
{ "id": "kibDevDocsOpsExpect" },
{ "id": "kibDevDocsOpsAmbientStorybookTypes" },
{ "id": "kibDevDocsOpsAmbientUiTypes" }
]
}

View file

@ -1,3 +0,0 @@
# @kbn/ambient-storybook-types
Ambient types needed to use storybook.

View file

@ -0,0 +1,18 @@
---
id: kibDevDocsOpsAmbientStorybookTypes
slug: /kibana-dev-docs/ops/ambient-storybook-types
title: "@kbn/ambient-storybook-types"
description: A package holding ambient type definitions for storybooks
date: 2022-05-18
tags: ['kibana', 'dev', 'contributor', 'operations', 'ambient', 'storybook', 'types']
---
This package holds ambient typescript definitions needed to use storybooks.
## Packages
To include these types in a package:
- add `"//packages/kbn-ambient-storybook-types"` to the `RUNTIME_DEPS` portion of the `BUILD.bazel` file.
- add `"//packages/kbn-ambient-storybook-types:npm_module_types"` to the `TYPES_DEPS` portion of the `BUILD.bazel` file.
- add `"@kbn/ambient-storybook-types"` to the `types` portion of the `tsconfig.json` file.