refactor: typescript support
This commit is contained in:
12
helpers/lenses/htmlLens.ts
Normal file
12
helpers/lenses/htmlLens.ts
Normal 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
|
||||
Reference in New Issue
Block a user