Open amitkumarhq opened 2 years ago
declare module 'perspective-api-client' {
interface AnalyzeResult {
attributeScores: any
languages: string[]
detectedLanguages: string[]
}
interface PerspectiveOptions {
apiKey: string
}
export default class Perspective {
constructor(options: PerspectiveOptions)
analyze(text: string): Promise<AnalyzeResult>
}
}
Can you please add type definition for this package..? It would be really helpful for TypeScript developers