Options
All
  • Public
  • Public/Protected
  • All
Menu

@lab5e/toolbox

Index

Functions

Const copyToClipboard

  • copyToClipboard(copyText: string): Promise<void>
  • Copy a text string to the user clipboard.

    Parameters

    • copyText: string

      Text to be copied to the clipboard

    Returns Promise<void>

    A promise which follows the success of the copy

Const deepClone

  • deepClone<ObjectType>(object: ObjectType): ObjectType
  • Utility function to clone an object without Symbols/Proxy/reactivity from Vue.

    Note, clears all functions as well.

    Type parameters

    • ObjectType

    Parameters

    • object: ObjectType

      Object to be cloned

    Returns ObjectType

    Cloned object

Const sleep

  • sleep(ms: number): Promise<void>
  • Utility sleep for waiting a given amount of milliseconds. Returns a Promise

    Parameters

    • ms: number

      Number of milliseconds to sleep

    Returns Promise<void>

    A promise that is resolved after given number of milliseconds

Generated using TypeDoc