wotsui-vue-directives
Version:
Vue Directives for WotsUI
12 lines (11 loc) • 342 B
TypeScript
import { DirectiveBinding } from 'vue';
export interface WordSettings {
id: string;
pattern: RegExp;
class?: string;
style?: {
[prop: string]: string | number;
};
callback?: (id: string, words: string[]) => any;
}
export default function wrapWords(el: HTMLElement, binding: DirectiveBinding): void;