I've got an interface defined as such:
import {AppBuild} from '../models/app-build.model'
export interface Build {
"Name": string
"Builds"?: Array<AppBuild>
}
In my component, I've imported it:
import {Build} from '../../models/build.model'
But when I try to declare a variable as a Build
:
build:Build;
build.Name = "Hi";
I get Cannot find name 'Build'.
Why would this be happening?
Here's that entire function if that helps:
let build:Build = new Build();
build.Name = "Hi";
console.log(buildNumber)
let tempBuildArray = new Array<Build>();
return build;