import { ActionParams } from "../support/interfaces"; import Action from "./action"; /** * Destroy action for sending a delete mutation. Will be used for record.$destroy(). */ export default class Destroy extends Action { /** * @param {State} state The Vuex state * @param {DispatchFunction} dispatch Vuex Dispatch method for the model * @param {string} id ID of the record to delete * @returns {Promise} true */ static call({ state, dispatch }: ActionParams, { id, args }: ActionParams): Promise; }