cushax-client
Advanced tools
Comparing version 0.1.8 to 0.1.9
/// <reference types="socket.io-client" /> | ||
import { Module } from "vuex"; | ||
import { ObjectPropertyToPair, UnionToIntersection } from "./types"; | ||
declare type CushaxAuthType<TSchema extends Module<any, any>, TAuth = Pick<TSchema["state"], "$auth">> = (data: Partial<TAuth>) => void; | ||
declare type CushaxAuthType<TSchema extends Module<any, any>> = (data: Partial<TSchema["state"]["$auth"]>) => void; | ||
export declare class Cushax<TModule extends Module<any, any>> { | ||
@@ -11,4 +11,4 @@ private socket; | ||
commit: UnionToIntersection<ObjectPropertyToPair<TModule, "mutations", keyof TModule["mutations"]> extends [infer TName, infer TFunction] ? TFunction extends (state: any, payload: infer TPayload) => any ? (name: TName, payload: TPayload) => void : never : never>; | ||
auth: CushaxAuthType<TModule, Pick<TModule["state"], "$auth">>; | ||
auth: CushaxAuthType<TModule>; | ||
} | ||
export {}; |
{ | ||
"name": "cushax-client", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author": "boenfu <1997@boenfu.cn>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
16413