@cfcs/angular
Advanced tools
Comparing version 0.0.22 to 0.0.23
{ | ||
"name": "@cfcs/angular", | ||
"version": "0.0.22", | ||
"description": "Cross Framework Components", | ||
"version": "0.0.23", | ||
"description": "CFCs(Cross Framework Components) are modules that convert components into framework usage for Angular", | ||
"author": { | ||
@@ -15,2 +15,4 @@ "name": "NAVER Corp." | ||
"keywords": [ | ||
"cfcs", | ||
"cfc", | ||
"angular", | ||
@@ -23,3 +25,3 @@ "ngx", | ||
"dependencies": { | ||
"@cfcs/core": "~0.0.22", | ||
"@cfcs/core": "~0.0.23", | ||
"tslib": "^2.3.0" | ||
@@ -26,0 +28,0 @@ }, |
import { EventEmitter } from "@angular/core"; | ||
import { ReactiveAdapter, ReactiveEventParameters } from "@cfcs/core"; | ||
import { ReactiveAdapterParam, ReactiveEventParameters, ReactiveState, ReactiveSubscribe } from "@cfcs/core"; | ||
declare type WithPrefix<Prefix extends string, Name extends string> = Prefix extends "" ? Name : `${Prefix}${Capitalize<Name>}`; | ||
@@ -11,9 +11,9 @@ export declare type AngularEventsOutputs<Events extends readonly any[], PropertyPrefix extends string = "", EventPrefix extends string = ""> = Events extends readonly [infer Name, ...infer Args] ? [`${WithPrefix<PropertyPrefix, string & Name>}: ${WithPrefix<EventPrefix, string & Name>}`, ...AngularEventsOutputs<Args, PropertyPrefix, EventPrefix>] : []; | ||
}; | ||
export declare type ReactiveResult<Instance, State extends Record<string, any> = {}, Methods extends keyof Partial<Instance> = any, Events extends Record<string, any> = {}> = State & { | ||
export declare type ReactiveResult<Instance extends ReactiveSubscribe<Record<string, any>>, State extends Record<string, any> = ReactiveState<Instance>, Methods extends keyof Partial<Instance> = any, Events extends Record<string, any> = {}> = State & { | ||
[key in Methods]: Instance[key]; | ||
} & ReactiveEvents<Events>; | ||
export declare type ReactiveAdapterResult<Adapter extends ReactiveAdapter<any, any, any, any, any>, PropertyPrefix extends string = ""> = Adapter extends ReactiveAdapter<infer Instance, infer State, infer Methods, any, infer Events> ? ReactiveResult<Instance, State, Methods, AngularBindingProperties<Events, PropertyPrefix>> : {}; | ||
export declare type ReactiveAdapterResult<Adapter extends ReactiveAdapterParam<any, any, any, any, any>, PropertyPrefix extends string = ""> = Adapter extends ReactiveAdapterParam<infer Instance, infer State, infer Methods, any, infer Events> ? ReactiveResult<Instance, State, Methods, AngularBindingProperties<Events, PropertyPrefix>> : {}; | ||
export declare type AngularReactiveEvents<Events extends Record<string, any>> = ReactiveEvents<Events>; | ||
export declare type AngularReactiveResult<Instance, State extends Record<string, any> = {}, Methods extends keyof Partial<Instance> = any, Events extends Record<string, any> = {}> = ReactiveResult<Instance, State, Methods, Events>; | ||
export declare type AngularReactiveAdapterResult<Adapter extends ReactiveAdapter<any, any, any, any, any>> = ReactiveAdapterResult<Adapter>; | ||
export declare type AngularReactiveResult<Instance extends ReactiveSubscribe<Record<string, any>>, State extends Record<string, any> = ReactiveState<Instance>, Methods extends keyof Partial<Instance> = any, Events extends Record<string, any> = {}> = ReactiveResult<Instance, State, Methods, Events>; | ||
export declare type AngularReactiveAdapterResult<Adapter extends ReactiveAdapterParam<any, any, any, any, any>> = ReactiveAdapterResult<Adapter>; | ||
export {}; |
@@ -1,5 +0,5 @@ | ||
import { ReactiveSubscribe, ReactiveAdapterParam } from "@cfcs/core"; | ||
export declare function useReactive<Instance extends ReactiveSubscribe<Record<string, any>>, State extends Record<string, any> = {}, Methods extends keyof Partial<Instance> = any, Props = any, Events extends Record<string, any> = {}>(self: State, reactiveAdapter: ReactiveAdapterParam<Instance, State, Methods, Props, Events>, props?: () => Props): { | ||
import { ReactiveSubscribe, ReactiveAdapterParam, ReactiveState } from "@cfcs/core"; | ||
export declare function useReactive<Instance extends ReactiveSubscribe<Record<string, any>>, State extends Record<string, any> = ReactiveState<Instance>, Methods extends keyof Partial<Instance> = any, Props = any, Events extends Record<string, any> = {}>(self: State, reactiveAdapter: ReactiveAdapterParam<Instance, State, Methods, Props, Events>, props?: () => Props): { | ||
mounted: () => void; | ||
destroy: () => void; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
27982
210
Updated@cfcs/core@~0.0.23