method Path.prototype.withExtnameimport { Path } from "https://dotland.deno.dev/x/dax@0.39.2/src/path.ts"; withExtname(ext: string): PathGets a new path reference with the provided extension. Parametersext: stringReturnsPath