mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* chore(NA): remove overrides for rootDir on packages * chore(NA): replace './target_types' with 'target_types' on packages * chore(NA): removes stripInternal false configs * chore(NA): remove unused strip internals |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json | ||
web_index.ts |
@kbn/server-route-repository
Utility functions for creating a typed server route repository, and a typed client, generating runtime validation and type validation from the same route definition.
Usage
TBD
Server vs. Browser entry points
This package exposes utils that can be used on both: the server and the browser.
However, importing the package might bring in server-only code, affecting the bundle size.
To avoid this, the package exposes 2 entry points: index.js
and web_index.js
.
When adding utilities to this package, please make sure to update the entry points accordingly and the BUILD.bazel's target_web
target build to include all the necessary files.