add more type, all defaults apps are now in typescript

This commit is contained in:
Xuan Sang LE
2020-06-04 17:49:48 +02:00
parent 6e95994892
commit fb462fe31b
50 changed files with 2612 additions and 1734 deletions

View File

@ -134,6 +134,7 @@ namespace OS {
basename: string;
info: FileInfoType;
ext: string;
type: string;
/**
*Creates an instance of BaseFileHandle.
* @param {string} path
@ -187,13 +188,22 @@ namespace OS {
* @returns {string}
* @memberof BaseFileHandle
*/
filename(): string {
get filename(): string {
if (!this.basename) {
return "Untitled";
}
return this.basename;
}
/**
*
*
* @memberof BaseFileHandle
*/
set filename(v: string)
{
this.basename = v;
}
/**
*
*