vuex-composition-helpers
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -12,3 +12,3 @@ import { Ref } from '@vue/composition-api'; | ||
export declare type KnownKeys<T> = { | ||
[K in keyof T]: string extends K ? never : number extends K ? never : K; | ||
[K in keyof T]: string extends K ? (T extends any ? any : never) : number extends K ? never : K; | ||
} extends { | ||
@@ -15,0 +15,0 @@ [_ in keyof T]: infer U; |
{ | ||
"name": "vuex-composition-helpers", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Helpers to use Vuex store form Vue Composition API", | ||
@@ -5,0 +5,0 @@ "author": "David Meir-Levy <davidmeirlevy@gmail.com>", |
# vuex-composition-helpers | ||
[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/greenpress/vuex-composition-helpers%2Ftest?type=cf-1)]( https%3A%2F%2Fg.codefresh.io%2Fpipelines%2Ftest%2Fbuilds%3Ffilter%3Dtrigger%3Abuild~Build%3Bpipeline%3A5e915b7d4c3d6b0fd35ac83d~test) | ||
[![npm version](https://badge.fury.io/js/vuex-composition-helpers.svg)](https://badge.fury.io/js/vuex-composition-helpers) | ||
@@ -5,0 +6,0 @@ A util package to use Vuex with Composition API easily. |
@@ -1,19 +0,19 @@ | ||
import { computed, getCurrentInstance, Ref } from '@vue/composition-api'; | ||
import {computed, getCurrentInstance, Ref} from '@vue/composition-api'; | ||
declare type OmitFirstArg<F, TReturn> = | ||
F extends (x: any, ...args: infer P) => any | ||
? (...args: P) => TReturn | ||
: never; | ||
? (...args: P) => TReturn | ||
: never; | ||
declare type InferType<T, TUnknown = any> = | ||
T extends (...args: any) => any | ||
? OmitFirstArg<T, ReturnType<T>> | ||
: T extends unknown | ||
? TUnknown | ||
: T; | ||
? OmitFirstArg<T, ReturnType<T>> | ||
: T extends unknown | ||
? TUnknown | ||
: T; | ||
declare type InferGetterType<T> = | ||
T extends (...args: any) => any | ||
? ReturnType<T> | ||
: any; | ||
? ReturnType<T> | ||
: any; | ||
@@ -30,6 +30,6 @@ export declare type ExtractTypes<O, TUnknown = any> = { | ||
[K in keyof T]: string extends K | ||
? never | ||
: number extends K | ||
? never | ||
: K | ||
? (T extends any ? any : never) | ||
: number extends K | ||
? never | ||
: K | ||
} extends { | ||
@@ -36,0 +36,0 @@ [_ in keyof T]: infer U |
Sorry, the diff of this file is not supported yet
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
33028
156