mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
define file extension in .d.ts so typescript doesn't complain
This commit is contained in:
parent
3a44ffe2bb
commit
dbfbcc36c6
3 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
load("//ts:prettier.bzl", "prettier", "prettier_test")
|
load("//ts:prettier.bzl", "prettier", "prettier_test")
|
||||||
load("//ts:sql_format.bzl", "sql_format_setup")
|
load("//ts:sql_format.bzl", "sql_format_setup")
|
||||||
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
||||||
|
|
||||||
prettier()
|
prettier()
|
||||||
|
|
||||||
|
@ -13,6 +14,12 @@ prettier_test(
|
||||||
|
|
||||||
sql_format_setup()
|
sql_format_setup()
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "image_module_support",
|
||||||
|
srcs = ["images.d.ts"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
|
||||||
# Exported files
|
# Exported files
|
||||||
#################
|
#################
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ ts_library(
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
tsconfig = "//ts:tsconfig.json",
|
tsconfig = "//ts:tsconfig.json",
|
||||||
deps = [
|
deps = [
|
||||||
|
"//ts:image_module_support",
|
||||||
"//ts/html-filter",
|
"//ts/html-filter",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
1
ts/images.d.ts
vendored
Normal file
1
ts/images.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
declare module "*.svg";
|
Loading…
Reference in a new issue