define file extension in .d.ts so typescript doesn't complain

This commit is contained in:
Damien Elmes 2021-03-28 18:17:07 +10:00 committed by Henrik Giesel
parent 3a44ffe2bb
commit dbfbcc36c6
3 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,6 @@
load("//ts:prettier.bzl", "prettier", "prettier_test")
load("//ts:sql_format.bzl", "sql_format_setup")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
prettier()
@ -13,6 +14,12 @@ prettier_test(
sql_format_setup()
ts_library(
name = "image_module_support",
srcs = ["images.d.ts"],
visibility = ["//visibility:public"],
)
# Exported files
#################

View file

@ -22,6 +22,7 @@ ts_library(
srcs = glob(["*.ts"]),
tsconfig = "//ts:tsconfig.json",
deps = [
"//ts:image_module_support",
"//ts/html-filter",
],
)

1
ts/images.d.ts vendored Normal file
View file

@ -0,0 +1 @@
declare module "*.svg";