Function
directory
(
kind: Kind,
name: string,
options?: {
readonly mustExist?: boolean | undefined
}
)
Source from the content-addressed store, hash-verified
| 649 | * @since 4.0.0 |
| 650 | */ |
| 651 | export const directory = <Kind extends ParamKind>( |
| 652 | kind: Kind, |
| 653 | name: string, |
| 654 | options?: { |
| 655 | readonly mustExist?: boolean | undefined |
| 656 | } |
| 657 | ): Param<Kind, string> => |
| 658 | path(kind, name, { |
| 659 | pathType: "directory", |
| 660 | typeName: "directory", |
| 661 | mustExist: options?.mustExist |
| 662 | }) |
| 663 | |
| 664 | /** |
| 665 | * Creates a file path parameter. |
Callers
nothing calls this directly
Tested by
no test coverage detected