(path: string)
| 765 | } |
| 766 | |
| 767 | function isSafeOutputPath(path: string) { |
| 768 | return path !== manifestName && !isAbsolute(path) && path !== "." && path !== ".." && !/[\\/]/.test(path) |
| 769 | } |
| 770 | |
| 771 | export function generate<Id extends string, Groups extends HttpApiGroup.Any>( |
| 772 | api: HttpApi.HttpApi<Id, Groups>, |