function getTypeOrThrow()

in telemetry/vscode/src/generate.ts [113:121]


function getTypeOrThrow(types: MetadataType[] = [], name: string) {
    const type = types.find(t => t.name === name)

    if (!type) {
        throw new Error(`did not find type: ${name}`)
    }

    return type
}