CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1 (changelog, source)
Search

Module Vuex

Provides classes and predicates for working with the vuex library.

Import path

import javascript

Predicates

commitLikeFunctionRef

Gets a node that refers to the commit or dispatch function of the store.

getAMappedAccess

Gets an API node that refers to a property of a Vue component instance, which has been bound by a helper of kind helperName to something named storeName.

mapStateHelperPred

Gets the x in mapState({name: () => x}).

mapStateHelperStep

Holds if pred -> succ is a step from a callback passed to mapState to a corresponding property access.

stateMutationPred

Gets a value that flows into the given access path of the state.

stateMutationStep

Holds if pred -> succ is a step from state mutation to state access.

stateMutationSucc

Gets a value that refers to the given access path of the state.

stateRefByAccessPath

Gets an API node that refers to the given access path relative to the root state, where the access path path is encoded as a namespace string (see appendToNamespace).

storeConfigObject

Gets the options object passed to a Vuex store creation or one of its modules.

storeConfigObject

Gets the options object passed to a Vuex store creation or one of its modules, with namespace bound to the namespace of the store.

storeRef

Gets a reference to a Vuex store.

storeRef

Gets a reference to a Vuex store in the given namespace.

vuex

Gets a reference to the Vuex package.