rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
20 lines (18 loc) • 564 B
text/typescript
import {Match} from '../Any/_Internal'
import {Path as OPath} from './Path'
import {Is} from '../Any/Is'
import {Key} from '../Any/Key'
import {List} from '../List/List'
/**
Check whether `O` has nested properties that match `M`
```ts
```
*/
export type HasPath<O extends object, Path extends List<Key>, M extends any = any, match extends Match = 'default'> =
Is<OPath<O, Path>, M, match>