Check out example codes for "typescript static class equivalent". It will help you in understanding the concepts better.

Code Example 1

//Example of Typescript static class equivalent
export abstract class Tools {   
  public static truncate(str, length) { 
    var ending = '...'; 
    if (str.length > length) { 
      return str.substring(0, length - ending.length) + ending; 
    } else { 
      return str; 
    } 
  }; 
}

Learn ReactJs, React Native from akashmittal.com