|
| 1 | +---@meta _ |
| 2 | + |
| 3 | +---@class __PATH__DriveAndRoot |
| 4 | +---@field drive string|NIL |
| 5 | +---@field root string|NIL |
| 6 | + |
| 7 | +---@class __PATH__ExpandOptions |
| 8 | +---@field base __PATH__|string? |
| 9 | +---@field home __PATH__|string|boolean? |
| 10 | +---@field expand_base boolean? |
| 11 | + |
| 12 | +---@class (exact) __PATH__ |
| 13 | +---@field new fun(path: string?): self |
| 14 | +---@field home fun(): self |
| 15 | +---@field is_absolute fun(self): boolean |
| 16 | +---@field anchor fun(self): self? |
| 17 | +---@field basename fun(self, suffix: string?): string |
| 18 | +---@field dirname fun(self): string |
| 19 | +---@field drive fun(self): self? |
| 20 | +---@field drive_and_root fun(self): __PATH__DriveAndRoot |
| 21 | +---@field each_parent fun(self, cb: fun(path: __PATH__)) |
| 22 | +---@field each_part fun(self, cb: fun(str: string)) |
| 23 | +---@field ends_with_separator fun(self): boolean |
| 24 | +---@field expand fun(self, options: __PATH__ExpandOptions?) |
| 25 | +---@field extension fun(self): string |
| 26 | +---@field join fun(self, parts: string[]|string): self |
| 27 | +---@field normalize fun(self, remove_final_separator: boolean?) |
| 28 | +---@field parent fun(self): self |
| 29 | +---@field parents fun(self): self[] |
| 30 | +---@field parts fun(self): string[] |
| 31 | +---@field relative_to fun(self, base: self|string): self |
| 32 | +---@field is_relative_to fun(self, base: self|string): self? |
| 33 | +---@field root fun(self): self? |
| 34 | +---@field sibling fun(self, name: self|string): self |
| 35 | +---@field stem fun(self): string |
| 36 | +---@operator concat(): string |
| 37 | +__PATH__ = {} |
0 commit comments