Function
file
(
kind: Kind,
name: string,
options?: {
readonly mustExist?: boolean | undefined
}
)
Source from the content-addressed store, hash-verified
| 688 | * @since 4.0.0 |
| 689 | */ |
| 690 | export const file = <Kind extends ParamKind>( |
| 691 | kind: Kind, |
| 692 | name: string, |
| 693 | options?: { |
| 694 | readonly mustExist?: boolean | undefined |
| 695 | } |
| 696 | ): Param<Kind, string> => |
| 697 | path(kind, name, { |
| 698 | pathType: "file", |
| 699 | typeName: "file", |
| 700 | mustExist: options?.mustExist |
| 701 | }) |
| 702 | |
| 703 | /** |
| 704 | * Creates a redacted parameter for sensitive data like passwords. |
Callers
nothing calls this directly
Tested by
no test coverage detected