1
0
mirror of https://github.com/C9Glax/tranga-website.git synced 2025-05-01 12:42:28 +02:00
2025-03-19 22:44:11 +01:00

12 lines
272 B
TypeScript

export default interface INewLibraryRecord {
path: string;
name: string;
}
export function Validate(record: INewLibraryRecord) : boolean {
if(record.path.length < 1)
return false;
if(record.name.length < 1)
return false;
return true;
}