direct-vuex
Advanced tools
Comparing version 0.6.10 to 0.6.11
{ | ||
"name": "direct-vuex", | ||
"version": "0.6.10", | ||
"version": "0.6.11", | ||
"description": "Use and implement your Vuex store with TypeScript types. Compatible with the Vue 3 composition API.", | ||
@@ -5,0 +5,0 @@ "author": "Paleo", |
# direct-vuex | ||
[![Build Status](https://travis-ci.com/paleo/direct-vuex.svg?branch=master)](https://travis-ci.com/paleo/direct-vuex) | ||
[![codebeat badge](https://codebeat.co/badges/17e153d2-1fca-470e-8ef2-e444827a5729)](https://codebeat.co/projects/github-com-paleo-direct-vuex-master) | ||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c62abca7334941b5ac75e713cd60a0a4)](https://www.codacy.com/manual/paleo/direct-vuex?utm_source=github.com&utm_medium=referral&utm_content=paleo/direct-vuex&utm_campaign=Badge_Grade) | ||
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/paleo/direct-vuex) | ||
[![npm](https://img.shields.io/npm/dm/direct-vuex)](https://www.npmjs.com/package/direct-vuex) | ||
![GitHub](https://img.shields.io/github/license/paleo/direct-vuex) | ||
@@ -13,3 +18,3 @@ Use and implement your Vuex store with TypeScript types. Direct-vuex doesn't require classes, so it is compatible with the Vue 3 composition API. | ||
``` | ||
```sh | ||
npm install direct-vuex | ||
@@ -135,2 +140,2 @@ ``` | ||
- **TSLint** from Microsoft (`ms-vscode.vscode-typescript-tslint-plugin`) | ||
- **TSLint** from Microsoft (`ms-vscode.vscode-typescript-tslint-plugin`) |
@@ -95,3 +95,3 @@ import { ActionContext, Store } from "vuex" | ||
type DirectActionContext<R, O> = { | ||
interface DirectActionContext<R, O> { | ||
rootState: ToFlatType<DirectState<R>> | ||
@@ -123,5 +123,5 @@ rootGetters: ToFlatType<DirectGetters<R>> | ||
type ToFlatType<T> = | ||
T extends Store<any> | Function ? T : | ||
T extends Store<any> | ((...args: any[]) => any) ? T : | ||
T extends object ? | ||
T extends infer O ? { [K in keyof O]: ToFlatType<O[K]> } : never | ||
: T |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30353
140