Skip to content

Commit

Permalink
[ts] add stub index.d.ts in @kbn/ui-shared-deps-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Oct 29, 2022
1 parent 8119e9a commit 21fb033
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/kbn-ui-shared-deps-npm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ PKG_REQUIRE_NAME = "@kbn/ui-shared-deps-npm"

SOURCE_FILES = glob(
[
"**/*.ts",
"**/*.js",
],
exclude = [
Expand Down
19 changes: 19 additions & 0 deletions packages/kbn-ui-shared-deps-npm/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

// NOTE, this types for this package are actually based on the index.js
// file, but this file is here so that when loading the source you don't
// have to set `allowJs` for your project

export type ThemeVersion = 'v8';
export const distDir: string;
export const dllManifestPath: string;
export const dllFilename: string;
export const publicPathLoader: string;
export function lightCssDistFilename(themeVersion: ThemeVersion): string;
export function darkCssDistFilename(themeVersion: ThemeVersion): string;

0 comments on commit 21fb033

Please sign in to comment.