Function setResource

  • Set a resource value by path

    Parameters

    • value: any

      new value of the resource to set

    • Optionalpath: string

      path of the resource to set, default to state path

    • OptionalinitializeToTypeIfNotExist: string

      if the resource does not exist, initialize it with this type

    Returns Promise<void>