index.d.ts 669 B

1234567891011121314151617181920212223242526
  1. declare module 'vue-clipboard2' {
  2. import Vue, { PluginFunction, WatchOptions } from 'vue'
  3. module "vue/types/vue" {
  4. interface Vue {
  5. $clipboardConfig: {
  6. autoSetContainer: boolean,
  7. appendToBody: boolean
  8. }
  9. $copyText(text: string, container?: object | HTMLElement): Promise<{
  10. action: string,
  11. text: string,
  12. trigger: String | HTMLElement | HTMLCollection | NodeList,
  13. clearSelection: () => void
  14. }>
  15. }
  16. }
  17. class VueClipboard {
  18. static install: PluginFunction<never>
  19. static config: {
  20. autoSetContainer: boolean
  21. appendToBody: boolean
  22. }
  23. }
  24. export default VueClipboard
  25. }