import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
import type { JSLibrary } from "workers/common/JSLibrary";
export function fetchJSLibraries(applicationId: string) {
return {
type: ReduxActionTypes.FETCH_JS_LIBRARIES_INIT,
payload: applicationId,
};
}
export function installLibraryInit(payload: Partial<JSLibrary>) {
type: ReduxActionTypes.INSTALL_LIBRARY_INIT,
payload,
export function toggleInstaller(payload: boolean) {
type: ReduxActionTypes.TOGGLE_INSTALLER,
export function uninstallLibraryInit(payload: JSLibrary) {
type: ReduxActionTypes.UNINSTALL_LIBRARY_INIT,
export function clearInstalls() {
type: ReduxActionTypes.CLEAR_PROCESSED_INSTALLS,