text stringlengths 0 601k |
|---|
let check_current_level client expected_level = let * level = get_current_level client in Check . ( ( level = expected_level ) level_type ) ~ error_msg " : expected current_period = % R , got % L " ; unit |
let get_proposals client = let * proposals = RPC . Votes . get_proposals client in JSON . as_list proposals |> List . map JSON . as_list |> List . map ( function | [ hash ; _ ] -> JSON . as_string hash | _ -> Test . fail " invalid proposal in JSON response : expected a list with 2 items " ) |> return |
let get_current_proposal client = let * proposal = RPC . Votes . get_current_proposal client in if JSON . is_null proposal then return None else return ( Some JSON . ( proposal |> as_string ) ) |
let check_current_proposal client expected_proposal_hash = let * current_proposal = get_current_proposal client in Check . ( ( current_proposal = Some expected_proposal_hash ) ( option string ) ) ~ error_msg " : expected current_proposal = % R , got % L " ; unit |
let get_protocols client = let * block = RPC . get_block_metadata client in return ( JSON . ( block |-> " protocol " |> as_string ) , JSON . ( block |-> " next_protocol " |> as_string ) ) |
let check_protocols client expected_protocols = let * protocols = get_protocols client in Check . ( ( protocols = expected_protocols ) ( tuple2 string string ) ) ~ error_msg " : expected ( protocol , next_protocol ) = % R , got % L " ; unit |
let check_listings_not_empty client = let * listings = RPC . Votes . get_listings client in match JSON . as_list listings with | [ ] -> Test . fail " Expected GET . . . / votes / listing RPC to return a non - empty list " | _ :: _ -> unit |
type target_protocol = Known of Protocol . t | Injected_test |
let target_protocol_tag = function | Known protocol -> Protocol . tag protocol | Injected_test -> " injected_test " |
let register ~ from_protocol ( ~ to_protocol : target_protocol ) ~ loser_protocols = Test . register ~ __FILE__ ~ title : ( sf " amendment : % s -> % s ( losers : % s ) " ( Protocol . tag from_protocol ) ( target_protocol_tag to_protocol ) ( String . concat " , " ( List . map Protocol . tag loser_protocols ) ) ) ~ tags... |
type kind = Proposal | Exploration | Cooldown | Promotion | Adoption |
let string_of_kind = function | Proposal -> " proposal " | Exploration -> " exploration " | Cooldown -> " cooldown " | Promotion -> " promotion " | Adoption -> " adoption " |
let pp_kind ppf kind = Format . fprintf ppf " % s " @@ string_of_kind kind |
let kind_encoding = let open Data_encoding in union ~ tag_size ` : Uint8 [ case ( Tag 0 ) ~ title " : Proposal " ( constant " proposal " ) ( function Proposal -> Some ( ) | _ -> None ) ( fun ( ) -> Proposal ) ; case ( Tag 1 ) ~ title " : exploration " ( constant " exploration " ) ( function Exploration -> Some ( ) | _ ... |
let succ_kind = function | Proposal -> Exploration | Exploration -> Cooldown | Cooldown -> Promotion | Promotion -> Adoption | Adoption -> Proposal |
type voting_period = { index : int32 ; kind : kind ; start_position : int32 } |
type info = { voting_period : t ; position : int32 ; remaining : int32 } |
let root ~ start_position = { index = 0l ; kind = Proposal ; start_position } |
let pp ppf { index ; kind ; start_position } = Format . fprintf ppf " [ @< hv 2 > index : % ld , @ kind :% a , @ start_position : % ld ] " @ index pp_kind kind start_position |
let pp_info ppf { voting_period ; position ; remaining } = Format . fprintf ppf " [ @< hv 2 > voting_period : % a , @ position :% ld , @ remaining : % ld ] " @ pp voting_period position remaining |
let encoding = let open Data_encoding in conv ( fun { index ; kind ; start_position } -> ( index , kind , start_position ) ) ( fun ( index , kind , start_position ) -> { index ; kind ; start_position } ) ( obj3 ( req " index " ~ description : " The voting period ' s index . Starts at 0 with the first block of \ the Alp... |
let info_encoding = let open Data_encoding in conv ( fun { voting_period ; position ; remaining } -> ( voting_period , position , remaining ) ) ( fun ( voting_period , position , remaining ) -> { voting_period ; position ; remaining } ) ( obj3 ( req ~ description " : The voting period to which the block belongs . " " v... |
let raw_reset period ~ start_position = let index = Int32 . succ period . index in let kind = Proposal in { index ; kind ; start_position } |
let raw_succ period ~ start_position = let index = Int32 . succ period . index in let kind = succ_kind period . kind in { index ; kind ; start_position } |
let position_since ( level : Level_repr . t ) ( voting_period : t ) = Int32 . ( sub level . level_position voting_period . start_position ) |
let remaining_blocks ( level : Level_repr . t ) ( voting_period : t ) ~ blocks_per_voting_period = let position = position_since level voting_period in Int32 . ( sub blocks_per_voting_period ( succ position ) ) |
let init_first_period ctxt ~ start_position = init ctxt @@ Voting_period_repr . root ~ start_position >>=? fun ctxt -> Storage . Vote . Pred_period_kind . init ctxt Voting_period_repr . Proposal |
let common ctxt = get_current ctxt >>=? fun current_period -> Storage . Vote . Pred_period_kind . update ctxt current_period . kind >|=? fun ctxt -> let start_position = Int32 . succ ( Level_storage . current ctxt ) . level_position in ( ctxt , current_period , start_position ) |
let reset ctxt = common ctxt >>=? fun ( ctxt , current_period , start_position ) -> Voting_period_repr . raw_reset current_period ~ start_position |> set_current ctxt |
let succ ctxt = common ctxt >>=? fun ( ctxt , current_period , start_position ) -> Voting_period_repr . raw_succ current_period ~ start_position |> set_current ctxt |
let get_current_kind ctxt = get_current ctxt >|=? fun { kind ; _ } -> kind |
let get_current_info ctxt = get_current ctxt >|=? fun voting_period -> let blocks_per_voting_period = Constants_storage . blocks_per_voting_period ctxt in let level = Level_storage . current ctxt in let position = Voting_period_repr . position_since level voting_period in let remaining = Voting_period_repr . remaining_... |
let get_current_remaining ctxt = get_current ctxt >|=? fun voting_period -> let blocks_per_voting_period = Constants_storage . blocks_per_voting_period ctxt in Voting_period_repr . remaining_blocks ( Level_storage . current ctxt ) voting_period ~ blocks_per_voting_period |
let is_last_block ctxt = get_current_remaining ctxt >|=? fun remaining -> Compare . Int32 . ( remaining = 0l ) |
let get_rpc_current_info ctxt = get_current_info ctxt >>=? fun ( { voting_period ; position ; _ } as voting_period_info ) -> if Compare . Int32 . ( position = Int32 . minus_one ) then let level = Level_storage . current ctxt in let blocks_per_voting_period = Constants_storage . blocks_per_voting_period ctxt in Storage ... |
let get_rpc_succ_info ctxt = Level_storage . from_raw_with_offset ctxt ~ offset : 1l ( Level_storage . current ctxt ) . level >>?= fun level -> get_current ctxt >|=? fun voting_period -> let blocks_per_voting_period = Constants_storage . blocks_per_voting_period ctxt in let position = Voting_period_repr . position_sinc... |
module S = struct let path = RPC_path . ( open_root / " votes " ) let ballots = RPC_service . get_service ~ description " : Sum of ballots casted so far during a voting period . " ~ query : RPC_query . empty ~ output : Vote . ballots_encoding RPC_path . ( path / " ballots " ) let ballot_list = RPC_service . get_service... |
let register ( ) = let open Services_registration in register0 ~ chunked : false S . ballots ( fun ctxt ( ) ( ) -> Vote . get_ballots ctxt ) ; register0 ~ chunked : true S . ballot_list ( fun ctxt ( ) ( ) -> Vote . get_ballot_list ctxt >|= ok ) ; register0 ~ chunked : false S . current_period ( fun ctxt ( ) ( ) -> Voti... |
let ballots ctxt block = RPC_context . make_call0 S . ballots ctxt block ( ) ( ) |
let ballot_list ctxt block = RPC_context . make_call0 S . ballot_list ctxt block ( ) ( ) |
let current_period ctxt block = RPC_context . make_call0 S . current_period ctxt block ( ) ( ) |
let successor_period ctxt block = RPC_context . make_call0 S . successor_period ctxt block ( ) ( ) |
let current_quorum ctxt block = RPC_context . make_call0 S . current_quorum ctxt block ( ) ( ) |
let listings ctxt block = RPC_context . make_call0 S . listings ctxt block ( ) ( ) |
let proposals ctxt block = RPC_context . make_call0 S . proposals ctxt block ( ) ( ) |
let current_proposal ctxt block = RPC_context . make_call0 S . current_proposal ctxt block ( ) ( ) |
let total_voting_power ctxt block = RPC_context . make_call0 S . total_voting_power ctxt block ( ) ( ) |
module Block_producer_keys = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V1 = struct type t = ( Keypair . Stable . V1 . t * Public_key . Compressed . Stable . V1 . t ) t list [ @@ deriving sexp ] sexp let to_latest = Fn . id end end ] end type t = Stable .... |
module Evaluator_status = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V1 = struct type t = At of Global_slot . Stable . V1 . t | Completed let to_latest = Fn . id end end ] end type t = Stable . Latest . t = At of Global_slot . t | Completed [ @@ deriving ... |
module Vrf_evaluation_result = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V1 = struct type t = { slots_won : Consensus . Data . Slot_won . Stable . V1 . t list ; evaluator_status : Evaluator_status . Stable . V1 . t } let to_latest = Fn . id end end ] end... |
module Worker_state = struct type init_arg = { constraint_constants : Genesis_constants . Constraint_constants . t ; consensus_constants : Consensus . Constants . Stable . Latest . t ; conf_dir : string ; logger : Logger . Stable . Latest . t } [ @@ deriving bin_io_unversioned ] bin_io_unversioned type t = { config : i... |
module Functions = struct type ( ' i , ' o ) ' o t = ' i Bin_prot . Type_class . t * ' o Bin_prot . Type_class . t * ( Worker_state . t -> ' i -> ' o Deferred . t ) t let create input output f : ( ' i , ' o ) ' o t = ( input , output , f ) f let set_new_epoch_state = create Consensus . Data . Epoch_data_for_vrf . Stabl... |
module Worker = struct module T = struct type ' worker functions = { set_new_epoch_state : ( ' worker , Consensus . Data . Epoch_data_for_vrf . t , unit ) Rpc_parallel . Function . t ; slots_won_so_far : ( ' worker , unit , Vrf_evaluation_result . t ) t Rpc_parallel . Function . t ; update_block_producer_keys : ( ' wor... |
type t = { connection : Worker . Connection . t ; process : Process . t } |
let update_block_producer_keys { connection ; process = _ } ~ keypairs = Worker . Connection . run connection ~ f : Worker . functions . update_block_producer_keys ~ arg ( : Keypair . And_compressed_pk . Set . to_list keypairs ) keypairs |
let create ~ constraint_constants ~ pids ~ consensus_constants ~ conf_dir ~ logger ~ keypairs = let on_failure err = [ % log error ] error " VRF evaluator process failed with error $ err " ~ metadata [ : ( " err " , Error_json . error_to_yojson err ) err ] ; Error . raise err in [ % log info ] info " Starting a new vrf... |
let set_new_epoch_state { connection ; process = _ } ~ epoch_data_for_vrf = Worker . Connection . run connection ~ f : Worker . functions . set_new_epoch_state ~ arg : epoch_data_for_vrf |
let slots_won_so_far { connection ; process = _ } = Worker . Connection . run connection ~ f : Worker . functions . slots_won_so_far ~ arg ( ) : |
module Disposable = struct include Class . Make ( ) include [ % js : val from : ( t list [ @ js . variadic ] ) -> t [ @@ js . global " vscode . Disposable . from " ] val make : dispose ( : unit -> unit ) -> t [ @@ js . new " vscode . Disposable " ] val dispose : t -> unit [ @@ js . call ] ] end |
module Command = struct include Interface . Make ( ) include [ % js : val title : t -> string [ @@ js . get ] val command : t -> string [ @@ js . get ] val tooltip : t -> string or_undefined [ @@ js . get ] val arguments : t -> Js . Any . t maybe_list [ @@ js . get ] val create : title : string -> command : string -> ?... |
module Position = struct include Class . Make ( ) include [ % js : val line : t -> int [ @@ js . get ] val character : t -> int [ @@ js . get ] val make : line : int -> character : int -> t [ @@ js . new " vscode . Position " ] val isBefore : t -> other : t -> bool [ @@ js . call ] val isBeforeOrEqual : t -> other : t ... |
module Range = struct include Class . Make ( ) include [ % js : val start : t -> Position . t [ @@ js . get ] val end_ : t -> Position . t [ @@ js . get ] val makePositions : start : Position . t -> end_ : Position . t -> t [ @@ js . new " vscode . Range " ] val makeCoordinates : startLine : int -> startCharacter : int... |
module TextLine = struct include Interface . Make ( ) include [ % js : val lineNumber : t -> int [ @@ js . get ] val text : t -> string [ @@ js . get ] val range : t -> Range . t [ @@ js . get ] val rangeIncludingLineBreak : t -> Range . t [ @@ js . get ] val firstNonWhitespaceCharacterIndex : t -> int [ @@ js . get ] ... |
module EndOfLine = struct type t = | CRLF [ @ js 2 ] | LF [ @ js 1 ] [ @@ js . enum ] [ @@ js ] end |
module TextEdit = struct include Class . Make ( ) include [ % js : val replace : range : Range . t -> newText : string -> t [ @@ js . global " vscode . TextEdit . replace " ] val insert : position : Position . t -> newText : string -> t [ @@ js . global " vscode . TextEdit . insert " ] val delete : Range . t -> t [ @@ ... |
module Uri = struct include Class . Make ( ) module Scheme = struct type t = [ ` File | ` Untitled ] let to_string = function | ` File -> " file " | ` Untitled -> " untitled " end include [ % js : val parse : string -> ? strict : bool -> unit -> t [ @@ js . global " vscode . Uri . parse " ] val file : string -> t [ @@ ... |
module TextDocument = struct include Interface . Make ( ) include [ % js : val uri : t -> Uri . t [ @@ js . get ] val fileName : t -> string [ @@ js . get ] val isUntitled : t -> bool [ @@ js . get ] val languageId : t -> string [ @@ js . get ] val version : t -> int [ @@ js . get ] val isDirty : t -> bool [ @@ js . ge... |
module WorkspaceFolder = struct include Interface . Make ( ) include [ % js : val uri : t -> Uri . t [ @@ js . get ] val name : t -> string [ @@ js . get ] val index : t -> int [ @@ js . get ] val create : uri : Uri . t -> name : string -> index : int -> t [ @@ js . builder ] ] end |
module ViewColumn = struct type t = | Active [ @ js - 1 ] | Beside [ @ js - 2 ] | One [ @ js 1 ] | Two [ @ js 2 ] | Three [ @ js 3 ] | Four [ @ js 4 ] | Five [ @ js 5 ] | Six [ @ js 6 ] | Seven [ @ js 7 ] | Eight [ @ js 8 ] | Nine [ @ js 9 ] [ @@ js . enum ] [ @@ js ] end |
module Selection = struct include Class . Extend ( Range ) ( ) include Range include [ % js : val anchor : t -> Position . t [ @@ js . get ] val active : t -> Position . t [ @@ js . get ] val makePositions : anchor : Position . t -> active : Position . t -> t [ @@ js . new " vscode . Selection " ] val makeCoordinates :... |
module TextEditorEdit = struct include Interface . Make ( ) type replaceLocation = ( [ ` Position of Position . t | ` Range of Range . t | ` Selection of Selection . t ] [ @ js . union ] ) [ @@ js ] let replaceLocation_of_js js_val = if Ojs . has_property js_val " anchor " then ` Position ( [ % js . to : Position . t ]... |
module TextEditorCursorStyle = struct type t = | Line [ @ js 1 ] | Block [ @ js 2 ] | Underline [ @ js 3 ] | LineThin [ @ js 4 ] | BlockOutline [ @ js 5 ] | UnderlineThin [ @ js 6 ] [ @@ js . enum ] [ @@ js ] end |
module TextEditorLineNumbersStyle = struct type t = | Off [ @ js 0 ] | On [ @ js 1 ] | Relative [ @ js 2 ] [ @@ js . enum ] [ @@ js ] end |
module TextEditorRevealType = struct type t = | Default [ @ js 0 ] | InCenter [ @ js 1 ] | InCenterIfOutsideViewport [ @ js 2 ] | AtTop [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module TextEditorOptions = struct include Interface . Make ( ) type tabSize = ( [ ` Int of int | ` String of string ] [ @ js . union ] ) [ @@ js ] let tabSize_of_js js_val = match Ojs . type_of js_val with | " number " -> ` Int ( [ % js . to : int ] js_val ) | " string " -> ` String ( [ % js . to : string ] js_val ) | ... |
module TextEditorDecorationType = struct include Interface . Make ( ) include [ % js : val key : t -> string [ @@ js . get ] val dispose : t -> unit [ @@ js . call ] val create : key : string -> dispose ( : unit -> unit ) -> t [ @@ js . builder ] ] let disposable this = Disposable . make ~ dispose ( : fun ( ) -> dispos... |
module MarkdownString = struct include Class . Make ( ) include [ % js : val value : t -> string [ @@ js . get ] val isTrusted : t -> bool or_undefined [ @@ js . get ] val supportThemeIcons : t -> bool or_undefined [ @@ js . get ] val make : ? value : string -> ? supportThemeIcons : bool -> unit -> t [ @@ js . new " vs... |
module ThemeColor = struct include Class . Make ( ) include [ % js : val make : id : string -> t [ @@ js . new " vscode . ThemeColor " ] ] end |
module ThemableDecorationAttachmentRenderOptions = struct include Interface . Make ( ) type contentIconPath = ( [ ` String of string | ` Uri of Uri . t ] [ @ js . union ] ) [ @@ js ] let contentIconPath_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` Ur... |
module ThemableDecorationInstanceRenderOptions = struct include Interface . Make ( ) include [ % js : val before : t -> ThemableDecorationAttachmentRenderOptions . t or_undefined [ @@ js . get ] val after : t -> ThemableDecorationAttachmentRenderOptions . t or_undefined [ @@ js . get ] val create : ? before : ThemableD... |
module DecorationInstanceRenderOptions = struct include Interface . Make ( ) include [ % js : val light : t -> ThemableDecorationInstanceRenderOptions . t or_undefined [ @@ js . get ] val dark : t -> ThemableDecorationInstanceRenderOptions . t or_undefined [ @@ js . get ] val create : ? light : ThemableDecorationInstan... |
module DecorationOptions = struct include Interface . Make ( ) type hoverMessage = ( [ ` MarkdownString of MarkdownString . t | ` MarkdownStrings of MarkdownString . t list ] [ @ js . union ] ) [ @@ js ] let hoverMessage_of_js js_val = if Ojs . has_property js_val " value " then ` MarkdownString ( [ % js . to : Markdow... |
module SnippetString = struct include Class . Make ( ) include [ % js : val value : t -> string [ @@ js . get ] val make : ? value : string -> unit -> t [ @@ js . new " vscode . SnippetString " ] val appendText : t -> string : string -> t [ @@ js . call ] val appendTabStop : t -> number : int -> t [ @@ js . call ] val ... |
module TextEditor = struct include Interface . Make ( ) type insertSnippetLocation = ( [ ` Position of Position . t | ` Range of Range . t | ` Positions of Position . t list | ` Ranges of Range . t list ] [ @ js . union ] ) [ @@ js ] include [ % js : val document : t -> TextDocument . t [ @@ js . get ] val selection : ... |
module ConfigurationTarget = struct type t = | Global [ @ js 1 ] | Workspace [ @ js 2 ] | WorkspaceFolder [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end |
module WorkspaceConfiguration = struct include Interface . Make ( ) type ' a inspectResult = { key : string ; defaultValue : ' a or_undefined ; globalValue : ' a or_undefined ; workspaceValue : ' a or_undefined ; workspaceFolderValue : ' a or_undefined ; defaultLanguageValue : ' a or_undefined ; globalLanguageValue : '... |
module WorkspaceEdit = struct include Class . Make ( ) include [ % js : val size : t -> int [ @@ js . get ] val replace : t -> uri : Uri . t -> range : Range . t -> newText : string -> unit [ @@ js . call ] val make : unit -> t [ @@ js . new " vscode . WorkspaceEdit " ] ] end |
module StatusBarAlignment = struct type t = | Left [ @ js 1 ] | Right [ @ js 2 ] [ @@ js . enum ] [ @@ js ] end |
module AccessibilityInformation = struct include Interface . Make ( ) include [ % js : val label : t -> string [ @@ js . get ] val role : t -> string or_undefined [ @@ js . get ] val create : label : string -> ? role : string -> unit -> t [ @@ js . builder ] ] end |
module StatusBarItem = struct include Interface . Make ( ) type color = ( [ ` String of string | ` ThemeColor of ThemeColor . t ] [ @ js . union ] ) [ @@ js ] let color_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` ThemeColor ( [ % js . to : ThemeColo... |
module WorkspaceFoldersChangeEvent = struct include Interface . Make ( ) include [ % js : val added : t -> WorkspaceFolder . t list [ @@ js . get ] val removed : t -> WorkspaceFolder . t list [ @@ js . get ] val create : added : WorkspaceFolder . t list -> removed : WorkspaceFolder . t list -> t [ @@ js . builder ] ] e... |
module FormattingOptions = struct include Interface . Make ( ) include [ % js : val tabSize : t -> int [ @@ js . get ] val insertSpaces : t -> bool [ @@ js . get ] val create : tabSize : int -> insertSpaces : bool -> t [ @@ js . builder ] ] end |
module Event = struct type ' a t = listener ( ' : a -> unit ) -> ? thisArgs : Js . Any . t -> ? disposables : Disposable . t list -> unit -> Disposable . t module Make ( T : Js . T ) = struct type t = listener ( : T . t -> unit ) -> ? thisArgs : Js . Any . t -> ? disposables : Disposable . t list -> unit -> Disposable ... |
module EventEmitter = struct include Class . Generic ( Ojs ) ( ) module Make ( T : Js . T ) = struct type t = T . t generic [ @@ js ] module Event = Event . Make ( T ) include [ % js : val make : unit -> t [ @@ js . new " vscode . EventEmitter " ] val event : t -> Event . t [ @@ js . get ] val fire : t -> T . t -> unit... |
module CancellationToken = struct include Interface . Make ( ) module OnCancellationRequested = Event . Make ( Js . Any ) include [ % js : val isCancellationRequested : t -> bool [ @@ js . get ] val onCancellationRequested : t -> OnCancellationRequested . t [ @@ js . get ] val create : isCancellationRequested : bool ->... |
module QuickPickItem = struct include Interface . Make ( ) include [ % js : val label : t -> string [ @@ js . get ] val description : t -> string or_undefined [ @@ js . get ] val detail : t -> string or_undefined [ @@ js . get ] val picked : t -> bool or_undefined [ @@ js . get ] val alwaysShow : t -> bool or_undefined... |
module QuickPickOptions = struct include Interface . Make ( ) type onDidSelectItemArgs = ( [ ` QuickPickItem of QuickPickItem . t | ` String of string ] [ @ js . union ] ) [ @@ js ] let onDidSelectItemArgs_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> `... |
module ProviderResult = struct type ' a t = [ ` Value of ' a or_undefined | ` Promise of ' a or_undefined Promise . t ] let t_to_js ml_to_js = function | ` Value v -> or_undefined_to_js ml_to_js v | ` Promise p -> Promise . t_to_js ( or_undefined_to_js ml_to_js ) p let t_of_js ml_of_js js_val = if Ojs . has_property js... |
module InputBoxOptions = struct include Interface . Make ( ) include [ % js : val title : t -> string or_undefined [ @@ js . get ] val value : t -> string or_undefined [ @@ js . get ] val valueSelection : t -> ( int * int ) or_undefined [ @@ js . get ] val prompt : t -> string or_undefined [ @@ js . get ] val placeHold... |
module MessageItem = struct include Interface . Make ( ) include [ % js : val title : t -> string [ @@ js . get ] val isCloseAffordance : t -> bool or_undefined [ @@ js . get ] val create : title : string -> ? isCloseAffordance : bool -> unit -> t [ @@ js . builder ] ] end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.