( value: T, )
| 15 | > = WithVirtualProps<T, TKey> |
| 16 | |
| 17 | export const stripVirtualProps = <T extends Record<string, any> | undefined>( |
| 18 | value: T, |
| 19 | ) => { |
| 20 | if (!value || typeof value !== `object`) return value |
| 21 | const { |
| 22 | $synced: _synced, |
| 23 | $origin: _origin, |
| 24 | $key: _key, |
| 25 | $collectionId: _collectionId, |
| 26 | ...rest |
| 27 | } = value as Record<string, unknown> |
| 28 | return rest as T |
| 29 | } |
| 30 | |
| 31 | export const omitVirtualProps = <T extends Record<string, any>>( |
| 32 | value: T, |
no outgoing calls
searching dependent graphs…