타입 별칭: WithoutVirtualProps<T>
type WithoutVirtualProps<T> = Omit<T, keyof VirtualRowProps>;
정의 위치: packages/db/src/virtual-props.ts:135
가상 속성이 있을 수 있는 타입에서 기본 타입을 추출합니다. 가상 속성 없이 원시 데이터로 작업해야 할 때 유용합니다.
타입 매개변수
T
T
가상 속성을 포함할 수 있는 타입
예제
type UserWithVirtual = { id: string; name: string; $synced: boolean; $origin: 'local' | 'remote' }
type User = WithoutVirtualProps<UserWithVirtual>
// { id: string; name: string }