mirror of
https://github.com/smogon/sprites.git
synced 2026-09-26 03:14:06 -05:00
deploy: add join()
This commit is contained in:
@@ -20,6 +20,10 @@ export function format({dir, name, ext} : Path) {
|
||||
return pathlib.format({dir, name, ext : dotext});
|
||||
}
|
||||
|
||||
export function join(s : string, {dir, name, ext} : Path) : Path {
|
||||
return {dir: pathlib.join(s, dir), name, ext};
|
||||
}
|
||||
|
||||
export type Delta = Partial<Path>;
|
||||
|
||||
export function update({dir, name, ext} : Path, delta : Delta) : Path {
|
||||
|
||||
Reference in New Issue
Block a user