import{_ as e,c as t,o as a,N as o}from"./chunks/framework.0799945b.js";const f=JSON.parse('{"title":"Module: util/computed","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/util/computed.md","lastUpdated":null}'),r={name:"api/modules/util/computed.md"},d=o('
Ƭ Computable<T
>: T
| Ref
<T
> | () => T
Name |
---|
T |
profectus/src/util/computed.ts:8
Ƭ ComputableKeysOf<T
>: Pick
<T
, { [K in keyof T]: T[K] extends Computable<unknown> ? K : never }[keyof T
]>
Name |
---|
T |
profectus/src/util/computed.ts:22
Ƭ GetComputableType<T
>: T
extends { [DoNotCache]
: true
} ? T
: T
extends () => infer S ? Ref
<S
> : undefined
extends T
? undefined
: T
Name |
---|
T |
profectus/src/util/computed.ts:10
Ƭ GetComputableTypeWithDefault<T
, S
>: undefined
extends T
? S
: GetComputableType
<NonNullable
<T
>>
Name |
---|
T |
S |
profectus/src/util/computed.ts:17
Ƭ ProcessedComputable<T
>: T
| Ref
<T
>
Name |
---|
T |
profectus/src/util/computed.ts:9
Ƭ UnwrapComputableType<T
>: T
extends Ref
<infer S> ? S
: T
extends () => infer S ? S
: T
Name |
---|
T |
profectus/src/util/computed.ts:20
• Const
DoNotCache: typeof DoNotCache
profectus/src/util/computed.ts:6
▸ convertComputable<T
>(obj
): ProcessedComputable
<T
>
Name | Type |
---|---|
obj | Computable <T > |
profectus/src/util/computed.ts:50
▸ processComputable<T
, S
>(obj
, key
): asserts obj is T & { [K in string | number | symbol]: ProcessedComputable<UnwrapComputableType<T[S]>> }
Name | Type |
---|---|
obj | T |
key | S |