@absolutejs/absolute 0.19.0-beta.344 → 0.19.0-beta.345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,4 @@
1
1
  import type { InputSignalWithTransform as AngularInputSignalWithTransform, Type as AngularComponent, ɵUnwrapDirectiveSignalInputs as UnwrapAngularSignalInputs } from '@angular/core';
2
- import type { ComponentType as ReactComponent } from 'react';
3
- import type { Component as SvelteComponent } from 'svelte';
4
- import type { Component as VueComponent } from 'vue';
5
2
  import type { ReactPropsOf } from './react';
6
3
  import type { SveltePropsOf } from './svelte';
7
4
  import type { VuePropsOf } from './vue';
@@ -24,16 +21,16 @@ type ExtractAngularProps<Component> = UnwrapIslandComponent<Component> extends A
24
21
  type ExtractFrameworkProps<Framework extends IslandFramework, Component> = Framework extends 'react' ? ReactPropsOf<UnwrapIslandComponent<Component>> : Framework extends 'svelte' ? SveltePropsOf<UnwrapIslandComponent<Component>> : Framework extends 'vue' ? VuePropsOf<UnwrapIslandComponent<Component>> : Framework extends 'angular' ? ExtractAngularProps<Component> : never;
25
22
  type NormalizeProps<Props> = Props extends Record<string, unknown> ? Props : Record<string, never>;
26
23
  type ValidateReactRegistry<T> = T extends Record<string, unknown> ? {
27
- [K in keyof T]: UnwrapIslandComponent<T[K]> extends ReactComponent<unknown> ? T[K] : never;
24
+ [K in keyof T]: ReactPropsOf<UnwrapIslandComponent<T[K]>> extends Record<string, never> ? never : T[K];
28
25
  } : never;
29
26
  type ValidateSvelteRegistry<T> = T extends Record<string, unknown> ? {
30
- [K in keyof T]: UnwrapIslandComponent<T[K]> extends SvelteComponent<Record<string, unknown>> ? T[K] : never;
27
+ [K in keyof T]: SveltePropsOf<UnwrapIslandComponent<T[K]>> extends Record<string, never> ? never : T[K];
31
28
  } : never;
32
29
  type ValidateVueRegistry<T> = T extends Record<string, unknown> ? {
33
- [K in keyof T]: UnwrapIslandComponent<T[K]> extends VueComponent<unknown> ? T[K] : never;
30
+ [K in keyof T]: VuePropsOf<UnwrapIslandComponent<T[K]>> extends Record<string, never> ? never : T[K];
34
31
  } : never;
35
32
  type ValidateAngularRegistry<T> = T extends Record<string, unknown> ? {
36
- [K in keyof T]: UnwrapIslandComponent<T[K]> extends AngularComponent<unknown> ? T[K] : never;
33
+ [K in keyof T]: UnwrapIslandComponent<T[K]> extends AngularComponent<infer _> ? T[K] : never;
37
34
  } : never;
38
35
  type ValidateIslandRegistry<T extends IslandRegistryInput> = {
39
36
  react?: ValidateReactRegistry<T['react']>;
package/package.json CHANGED
@@ -310,5 +310,5 @@
310
310
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
311
311
  },
312
312
  "types": "./dist/src/index.d.ts",
313
- "version": "0.19.0-beta.344"
313
+ "version": "0.19.0-beta.345"
314
314
  }