refactor: typescript support

This commit is contained in:
liyasthomas
2021-09-15 17:30:04 +05:30
parent 96bcbc80f8
commit 4e8a4e8914
21 changed files with 98 additions and 176 deletions

View File

@@ -0,0 +1,12 @@
import { Lens } from "./lenses"
const htmlLens: Lens = {
lensName: "response.html",
isSupportedContentType: (contentType) =>
/\btext\/html|application\/xhtml\+xml\b/i.test(contentType),
renderer: "htmlres",
rendererImport: () =>
import("~/components/lenses/renderers/HTMLLensRenderer.vue"),
}
export default htmlLens