(path: string)
| 1244 | ) |
| 1245 | |
| 1246 | const processPath = (path: string): { |
| 1247 | readonly pathIds: Array<string> |
| 1248 | readonly pathTemplate: string |
| 1249 | } => { |
| 1250 | const pathIds: Array<string> = [] |
| 1251 | path = path.replace(/{([^}]+)}/g, (_, name) => { |
| 1252 | const id = Utils.camelize(name) |
| 1253 | pathIds.push(id) |
| 1254 | return "${" + id + "}" |
| 1255 | }) |
| 1256 | const pathTemplate = "`" + path + "`" |
| 1257 | return { pathIds, pathTemplate } as const |
| 1258 | } |
no test coverage detected