Skip to content

Instantly share code, notes, and snippets.

View vue-no-reactive.ts
/* tslint:disable */
export function NoObserver<T>(target: T): T {
if (target === null || typeof target === 'undefined') {
return target;
}
(target as any)._isVue = true;
return target;
}
@vhqtvn
vhqtvn / vuex-module-decorators.d.ts
Created Jul 20, 2019
Hacky vuex-module-decorators fix for preserveState
View vuex-module-decorators.d.ts
import { Module, VuexModule, Mutation, Action } from 'vuex-module-decorators'
type ModulePreserveState = Module
export { Module, ModulePreserveState, VuexModule, Mutation, Action }
You can’t perform that action at this time.