Looking for assistance with creating code completion in TypeScript.
Variable.Append1
Variable.Append2
Variable.Append3
I have defined the following class:
class Variable {
Append1(name: string){
if (name == undefined) {
return 0;
}
return name;
}
Append2(name: string){
return name;
}
Append3(name: string, defaultValue: string){
if (name == undefined){
return defaultValue;
}
return name;
}
}
Although I have added this class to my library and my JavaScript file recognizes the 'Variable' parameter, it does not recognize Append1, Append2, or Append3. As a beginner in TypeScript, any help would be greatly appreciated!