Currently it returns `ReadonlyArray<any>`. This is sufficient but it would be nicer to have some strongly typed output.