Skip to content

Commit

Permalink
docs(NA): adding @kbn/ambient-storybook-types into ops docs (elastic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed May 18, 2022
1 parent b29c645 commit d8a6258
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions dev_docs/operations/operations_landing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ layout: landing
{ pageId: "kibDevDocsToolingLog" },
{ pageId: "kibDevDocsOpsJestSerializers"},
{ pageId: "kibDevDocsOpsExpect" },
{ pageId: "kibDevDocsOpsAmbientStorybookTypes" },
{ pageId: "kibDevDocsOpsAmbientUiTypes"},
]}
/>
3 changes: 2 additions & 1 deletion nav-kibana-dev.docnav.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@
"label": "Utilities",
"items": [
{ "id": "kibDevDocsToolingLog" },
{ "id": "kibDevDocsOpsJestSerializers"},
{ "id": "kibDevDocsOpsJestSerializers" },
{ "id": "kibDevDocsOpsExpect" },
{ "id": "kibDevDocsOpsAmbientStorybookTypes" },
{ "id": "kibDevDocsOpsAmbientUiTypes" }
]
}
Expand Down
3 changes: 0 additions & 3 deletions packages/kbn-ambient-storybook-types/README.md

This file was deleted.

18 changes: 18 additions & 0 deletions packages/kbn-ambient-storybook-types/README.mdx
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit d8a6258

Please sign in to comment.