How to write a string type that does not contain an empty string in TypeScript
04:43 16 Sep 2017

A function of TypeScript wroten as below:

function propKeyMap(propKey:string):string {
  //TODO
}

The propKey can't be an ""(empty string). Can we write a type which does not contain an empty string?

typescript