Last active
May 21, 2020 10:23
-
-
Save wizcas/23273f2db1bd3e0755fd2db1a27306d7 to your computer and use it in GitHub Desktop.
Valine TypeScript Type Declaration File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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