-- Generated by scripts/generate.mjs. Do not edit. module Dagger.InterfaceTypeDef ( description , functions , id , name , sourceMap , sourceModuleName ) where import Data.Maybe (Maybe) import Effect.Aff (Aff) import Dagger.Internal.Runtime as R import Dagger.Types as T -- | The doc string for the interface, if any. description :: T.InterfaceTypeDef -> Aff String description = R.scalar "description" [] -- | Functions defined on this interface, if any. functions :: T.InterfaceTypeDef -> Aff (Array T.Function) functions = R.objectList "Function" "functions" [] -- | A unique identifier for this InterfaceTypeDef. id :: T.InterfaceTypeDef -> Aff T.ID id = R.scalar "id" [] -- | The name of the interface. name :: T.InterfaceTypeDef -> Aff String name = R.scalar "name" [] -- | The location of this interface declaration. sourceMap :: T.InterfaceTypeDef -> Aff (Maybe T.SourceMap) sourceMap = R.nullableObject "SourceMap" "sourceMap" [] -- | If this InterfaceTypeDef is associated with a Module, the name of the module. Unset otherwise. sourceModuleName :: T.InterfaceTypeDef -> Aff String sourceModuleName = R.scalar "sourceModuleName" []