You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
| type PickProp<T, K> = K extends keyof NonNullable<T> | |
| ? T extends undefined | |
| ? NonNullable<T>[K] | undefined | |
| : NonNullable<T>[K] | |
| : undefined; | |
| export function focusPropAtom<Store, Result, Key extends keyof NonNullable<Store>>( | |
| baseAtom: WritableAtom<Store, [SetStateAction<Store>], Result>, | |
| path: Key, | |
| ) { |