I'm having trouble casting geometryType as I keep getting this error :
IShape is a Type not a Namespace
when attempting to do the following:
interface IShape {
readonly geometryType: "RECTANGLE" | "SQUARE"
}
let geometryType = "SQUARE" as IShape.geometryType
const geometry: IShape = {
geometryType: geometryType
}