Skip to content

Instantly share code, notes, and snippets.

@whitetigle
Created January 9, 2019 18:28
Show Gist options
  • Save whitetigle/17aec8f337a46fbdf3db7c3cbec54c72 to your computer and use it in GitHub Desktop.
Save whitetigle/17aec8f337a46fbdf3db7c3cbec54c72 to your computer and use it in GitHub Desktop.
module rec Fable.Import.GenPass
open Fable.Core
open Fable.Import.JS
[<Import("default", from="generate-password")>]
let generator: IExports = jsNative
[<RequireQualifiedAccess>]
type IOptions =
abstract length:int with get, set
abstract numbers:bool with get, set
abstract symbols:bool with get, set
abstract uppercase:bool with get, set
abstract excludeSimilarCharacters:bool with get, set
abstract exclude:string with get, set
abstract strict:bool with get, set
type [<AllowNullLiteral>] IExports =
abstract generate: options : IOptions -> string
abstract generateMultiple: number: int * options : IOptions -> string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment