mirror of
https://github.com/smogon/sprites.git
synced 2026-07-13 06:31:33 -05:00
deploy: add join()
This commit is contained in:
parent
e7c61afd39
commit
a02fd9231f
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user