mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-04-20 07:13:20 +02:00
12 lines
272 B
TypeScript
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;
|
|
} |