import { fetchFromApi } from './api/haveibeenpwned' ; param options param { string } options . baseUrl param { string } options . userAgent returns { ( Promise < string [ ] > | Promise < null > ) } example export function dataClasses ( options = { } ) { return fetchFromApi ( '/dataclasses' , options ) as Promise < string [ ] | null > ; }