module NativeUi.Alert exposing (Error, alert)

{-|
@docs Error, alert
-}

import Native.NativeUi.Alert
import Task exposing (Task)


{-| -}
type Error
    = Error String


type alias AlertButton =
    { text : String
    , value : Bool
    }


{-| -}
alert : String -> String -> List AlertButton -> Task Error Bool
alert =
    Native.NativeUi.Alert.alert

module NativeUi.Alert exposing (alert)

{-|
@docs alert
-}

import Native.NativeUi.Alert
import Task exposing (Task)


type alias AlertButton =
    { text : String
    , value : Bool
    }


{-| -}
alert : String -> String -> List AlertButton -> Task String Bool
alert =
    Native.NativeUi.Alert.alert

Use String instead of custom type for alert error
Use String instead of custom type for alert error
