#Create Type
3 messages · Page 1 of 1 (latest)
You mean like this?
type TypeOutputs = {Key: string, Value: string}[]
const f = (): TypeOutputs => ([{Key: 'foo', Value: 'bar'}]);
It would be a type to simplify and not need to pass it in the constructor ```ts
export class TechOutputs {
private techOutputsKeys = new Map<string, string>();
constructor(outputs: { Key: string; Value: string }[]) {
this.assignNeurotechOutputsKeys(outputs);
}