PathParttype

string | readonly string[]

A single argument accepted by joinPath() — either a string (full path or single segment) or an array of segments.