Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
export class SelectItem {
id: string
name: string
description: string
constructor(source: any) {
if (typeof source === 'string') {
this.id = this.name = source
this.description = ''
}
if (typeof source === 'object') {
this.id = source.id || source.name
this.name = source.name
this.description = source.description || ''
}
}
}