Added functionallity to handle functions
This commit is contained in:
@@ -6,7 +6,7 @@ public lib Preview.Classes {
|
||||
this._name = name;
|
||||
}
|
||||
|
||||
public getName(): string {
|
||||
public func getName(): string {
|
||||
return this._name;
|
||||
}
|
||||
}
|
||||
|
@@ -2,4 +2,8 @@ public lib Preview.Functions {
|
||||
public func isTrue(value: bool): bool {
|
||||
return value;
|
||||
}
|
||||
|
||||
public func add(value1: number, value2: number): number {
|
||||
return value1 + value2;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user