Skip to content

Instantly share code, notes, and snippets.

@wizcas
Last active May 21, 2020 10:23
Show Gist options
  • Save wizcas/23273f2db1bd3e0755fd2db1a27306d7 to your computer and use it in GitHub Desktop.
Save wizcas/23273f2db1bd3e0755fd2db1a27306d7 to your computer and use it in GitHub Desktop.
Valine TypeScript Type Declaration File
declare module 'valine' {
export interface ValineOptions {
el: string
appId: string
appKey: string
placeholder?: string
path?: string
avatar?: '' | 'mp' | 'identicon' | 'monsterid' | 'wavatar' | 'retro' | 'robohash' | 'hide'
meta?: ('nick' | 'mail' | 'link')[]
pageSize?: number
lang?: string
visitor?: boolean
highlight?: boolean
avatarForce?: boolean
recordIP?: boolean
serverURLs?: string
emojiCDN?: string
emojiMaps?: object
enableQQ?: boolean
requiredFields?: ('nick' | 'mail' | 'link')[]
}
class Valine {
constructor(options?: ValineOptions) {}
init(options: ValineOptions)
}
export = Valine
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment