1.5.0 doc update and add other_data

This commit is contained in:
mbecker20
2024-05-25 17:57:31 -07:00
parent 447690d8bf
commit abf48d0243
10 changed files with 156 additions and 15 deletions

View File

@@ -57,8 +57,9 @@ function keep_line(line: string) {
return true;
}
export function version_is_none({ major, minor, patch }: Types.Version) {
return major === 0 && minor === 0 && patch === 0;
export function version_is_none(version?: Types.Version) {
if (!version) return true;
return version.major === 0 && version.minor === 0 && version.patch === 0;
}
export function resource_name(type: UsableResource, id: string) {