New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-component-type-helpers

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-component-type-helpers - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

10

index.d.ts
export type ComponentProps<T> =
T extends new () => { $props: infer P } ? NonNullable<P> :
T extends (props: infer P, ...args: any) => any ? P :
T extends new () => { $props: infer P } ? NonNullable<P> :
{};
export type ComponentSlots<T> =
T extends new () => { $slots: infer S } ? NonNullable<S> :
T extends (props: any, ctx: { slots: infer S }, ...args: any) => any ? NonNullable<S> :
T extends new () => { $slots: infer S } ? NonNullable<S> :
{};
export type ComponentEmit<T> =
T extends new () => { $emit: infer E } ? NonNullable<E> :
T extends (props: any, ctx: { emit: infer E }, ...args: any) => any ? NonNullable<E> :
T extends new () => { $emit: infer E } ? NonNullable<E> :
{};
export type ComponentExposed<T> =
T extends new () => infer E ? E :
T extends (props: any, ctx: { expose(exposed: infer E): any }, ...args: any) => any ? NonNullable<E> :
T extends new () => infer E ? E :
{};

@@ -26,4 +26,4 @@

export type Vue2ComponentSlots<T> =
T extends new () => { $scopedSlots: infer S } ? NonNullable<S> :
T extends (props: any, ctx: { slots: infer S }, ...args: any) => any ? NonNullable<S> :
T extends new () => { $scopedSlots: infer S } ? NonNullable<S> :
{};
{
"name": "vue-component-type-helpers",
"version": "1.4.2",
"version": "1.4.3",
"license": "MIT",

@@ -13,3 +13,3 @@ "files": [

},
"gitHead": "7879b086f9e5c4a9e748014d5469370d0f3de378"
"gitHead": "5236d30f9eec38c9537af66471c587821f11ef82"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc