nuxt-sanitize-html
Version:
Nuxt wrapper for sanitize-html
23 lines (22 loc) • 511 B
TypeScript
import { IOptions } from "sanitize-html";
export interface sanitize {
(dirty: string, options?: IOptions): string;
}
declare module 'vue/types/vue' {
interface Vue {
$sanitize: sanitize;
}
}
interface PluginInjection {
$sanitize: sanitize;
}
declare module '#app' {
interface NuxtApp extends PluginInjection {
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties extends PluginInjection {
}
}
declare const _default: any;
export default _default;