@universal-packages/dynamic-api
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -1,1 +0,1 @@ | ||
export declare function Dynamic(name: string, defaultDynamic?: boolean): (target: any) => void; | ||
export declare function Dynamic<D = Record<string, any>>(name: keyof D, defaultDynamic?: boolean): (target: any) => void; |
import { DynamicHookPosition } from './DynamicApi.types'; | ||
export declare function DynamicHook(lifeCycle: DynamicHookPosition, name: string): (target: any) => void; | ||
export declare function DynamicHook<D = Record<string, any>>(lifeCycle: DynamicHookPosition, name: keyof D): (target: any) => void; |
{ | ||
"name": "@universal-packages/dynamic-api", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Dynamic decoupling-adapting system", | ||
@@ -5,0 +5,0 @@ "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)", |
@@ -206,2 +206,12 @@ # Dynamic API | ||
Use your template names in the hooks as well | ||
```ts | ||
import { Dynamic } from '@universal-packages/dynamic-api' | ||
import { DynamicNames } from './types' | ||
@Dynamic<DynamicNames>('calculate') | ||
export default class CalculateDynamic {} | ||
``` | ||
## Contributing | ||
@@ -208,0 +218,0 @@ |
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
26630
226