Module: features/feature
Enumerations
Type aliases
CoercableComponent
Ƭ CoercableComponent: string
| DefineComponent
| JSXFunction
Defined in
profectus/src/features/feature.ts:10
FeatureComponent
Ƭ FeatureComponent<T
>: Omit
<{ [K
in keyof T
]: T
[K
] extends ProcessedComputable
<infer S> ? S
: T
[K
] }, typeof Component
| typeof DefaultValue
>
Type parameters
Name |
---|
T |
Defined in
profectus/src/features/feature.ts:18
GenericComponent
Ƭ GenericComponent: DefineComponent
<any
, any
, any
>
Defined in
profectus/src/features/feature.ts:16
JSXFunction
Ƭ JSXFunction: () => JSX.Element
& { [DoNotCache]
: true
}
Defined in
profectus/src/features/feature.ts:9
Replace
Ƭ Replace<T
, S
>: S
& Omit
<T
, keyof S
>
Type parameters
Name |
---|
T |
S |
Defined in
profectus/src/features/feature.ts:25
StyleValue
Ƭ StyleValue: string
| CSSProperties
| (string
| CSSProperties
)[]
Defined in
profectus/src/features/feature.ts:11
Variables
Component
• Const
Component: typeof Component
Defined in
profectus/src/features/feature.ts:6
GatherProps
• Const
GatherProps: typeof GatherProps
Defined in
profectus/src/features/feature.ts:7
Functions
findFeatures
▸ findFeatures(obj
, type
): unknown
[]
Parameters
Name | Type |
---|---|
obj | Record <string , unknown > |
type | symbol |
Returns
unknown
[]
Defined in
profectus/src/features/feature.ts:61
getUniqueID
▸ getUniqueID(prefix?
): string
Parameters
Name | Type | Default value |
---|---|---|
prefix | string | "feature-" |
Returns
string
Defined in
profectus/src/features/feature.ts:32
jsx
▸ jsx(func
): JSXFunction
Parameters
Name | Type |
---|---|
func | () => "" | Element |
Returns
Defined in
profectus/src/features/feature.ts:42
setDefault
▸ setDefault<T
, K
>(object
, key
, value
): asserts object
is Exclude
<T
, K
> & Required
<Pick
<T
, K
>>
Type parameters
Name | Type |
---|---|
T | T |
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
object | T |
key | K |
value | T [K ] |
Returns
asserts object
is Exclude
<T
, K
> & Required
<Pick
<T
, K
>>
Defined in
profectus/src/features/feature.ts:51
showIf
▸ showIf(condition
, otherwise?
): Visibility
Parameters
Name | Type | Default value |
---|---|---|
condition | boolean | undefined |
otherwise | Visibility | Visibility.None |