text
stringlengths
12
786k
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 : f...
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...
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 | C...
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 ...
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_unversion...
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 = cre...
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 ; u...
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 [ ...
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...
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 ] v...
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 [ ...
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 ma...
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 firstNonW...
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 . TextEd...
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 " v...
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 [...
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 . ...
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 ]...
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 . ...
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 "...
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 ) | " ...
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 = ...
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 -> ? supportThemeI...
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...
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 ] ...
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 : ...
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 " t...
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 appendTabSt...
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 ...
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 ...
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 " ...
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 ] ...
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 : WorkspaceFolde...
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 -> ? di...
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 -> ...
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 cr...
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 . ...
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 " -> ` Str...
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...
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 -> stri...
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
module Location = struct include Class . Make ( ) include [ % js : val uri : t -> Uri . t [ @@ js . get ] val range : t -> Range . t [ @@ js . get ] val make : uri : Uri . t -> rangeOrPosition : ( [ ` Range of Range . t | ` Position of Position . t ] [ @ js . u...
module ProgressLocation = struct type t = | SourceControl [ @ js 1 ] | Window [ @ js 10 ] | Notification [ @ js 15 ] [ @@ js . enum ] [ @@ js ] end
module ProgressOptions = struct include Interface . Make ( ) type viewIdLocation = { viewId : string } [ @@ js ] type location = ( [ ` ProgressLocation of ProgressLocation . t | ` ViewIdLocation of viewIdLocation ] [ @ js . union ] ) [ @@ js ] let location_of_js js_val = m...
module DiagnosticSeverity = struct type t = | Error [ @ js 0 ] | Hint [ @ js 1 ] | Information [ @ js 2 ] | Warning [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end
module DiagnosticRelatedInformation = struct include Class . Make ( ) include [ % js : val location : t -> Location . t [ @@ js . get ] val message : t -> string [ @@ js . get ] val make : location : Location . t -> message : string -> t [ @@ js . new " vscode . Diagnostic...
module DiagnosticTag = struct type t = | Unnecessary [ @ js 1 ] | Deprecated [ @ js 2 ] [ @@ js . enum ] [ @@ js ] end
module Diagnostic = struct include Class . Make ( ) type string_or_int = ( [ ` String of string | ` Int of int ] [ @ js . union ] ) [ @@ js ] let string_or_int_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) ...
module TextDocumentShowOptions = struct include Interface . Make ( ) include [ % js : val viewColumn : t -> ViewColumn . t or_undefined [ @@ js . get ] val preserveFocus : t -> bool or_undefined [ @@ js . get ] val preview : t -> bool or_undefined [ @@ js . get ] val selection :...
module TerminalOptions = struct include Interface . Make ( ) type shellArgs = ( [ ` Arg of string | ` Args of string list ] [ @ js . union ] ) [ @@ js ] let shellArgs_of_js js_val = match Ojs . type_of js_val with | " string " -> ` Arg ( [ % js . to : string ] js_va...
module TerminalDimensions = struct include Interface . Make ( ) include [ % js : val columns : t -> int [ @@ js . get ] val rows : t -> int [ @@ js . get ] val create : columns : int -> rows : int -> t [ @@ js . builder ] ] end
module Pseudoterminal = struct include Interface . Make ( ) module OnDidWrite = Event . Make ( Js . String ) module OnDidOverrideDimensions = Event . Make ( Js . Or_undefined ( TerminalDimensions ) ) module OnDidClose = Event . Make ( Js . Or_undefined ( Js . Int ) ) include ...
module ExtensionTerminalOptions = struct include Interface . Make ( ) include [ % js : val name : t -> string [ @@ js . get ] val pty : t -> Pseudoterminal . t [ @@ js . get ] val create : name : string -> pty : Pseudoterminal . t -> t [ @@ js . builder ] ] end
module Extension = struct include Interface . Make ( ) end
module Extensions = struct include [ % js : val getExtension : string -> Extension . t or_undefined [ @@ js . global " vscode . extensions . getExtension " ] ] end
module TerminalExitStatus = struct include Interface . Make ( ) include [ % js : val code : t -> int [ @@ js . get ] val create : code : int -> t [ @@ js . builder ] ] end
module Terminal = struct include Interface . Make ( ) type creationOptions = ( [ ` TerminalOptions of TerminalOptions . t | ` ExtensionTerminalOptions of ExtensionTerminalOptions . t ] [ @ js . union ] ) [ @@ js ] let creationOptions_of_js js_val = if Ojs . has_property js_val " ...
module OutputChannel = struct include Interface . Make ( ) include [ % js : val name : t -> string [ @@ js . get ] val append : t -> value : string -> unit [ @@ js . call ] val appendLine : t -> value : string -> unit [ @@ js . call ] val clear : t -> unit [ @@ js . call...
module Memento = struct include Interface . Make ( ) include [ % js : val get : t -> key : string -> Js . Any . t or_undefined [ @@ js . call ] val get_default : t -> key : string -> defaultValue : Ojs . t -> Ojs . t [ @@ js . call ] val update : t -> key : string -> value...
module EnvironmentVariableMutatorType = struct type t = | Replace [ @ js 1 ] | Append [ @ js 2 ] | Prepend [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end
module EnvironmentVariableMutator = struct include Interface . Make ( ) include [ % js : val type_ : t -> EnvironmentVariableMutatorType . t [ @@ js . get " type " ] val value : t -> string [ @@ js . get ] ] end
module EnvironmentVariableCollection = struct include Interface . Make ( ) include [ % js : val persistent : t -> bool [ @@ js . get ] val replace : t -> variable : string -> value : string -> unit [ @@ js . call ] val append : t -> variable : string -> value : string -> unit [ ...
module ExtensionMode = struct type t = | Production [ @ js 1 ] | Development [ @ js 2 ] | Test [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end
module SecretStorageChangeEvent = struct include Interface . Make ( ) include [ % js : val key : t -> string [ @@ js . get ] ] end
module SecretStorage = struct include Interface . Make ( ) module OnDidChange = Event . Make ( SecretStorageChangeEvent ) include [ % js : val get : t -> key : string -> string or_undefined Promise . t [ @@ js . call ] val store : t -> key : string -> value : string -> Promise . v...
module ExtensionContext = struct include Interface . Make ( ) include [ % js : val subscriptions : t -> Disposable . t list [ @@ js . get ] val workspaceState : t -> Memento . t [ @@ js . get ] val globalState : t -> Memento . t [ @@ js . get ] val secrets : t -> SecretStor...
module ShellQuotingOptions = struct include Interface . Make ( ) type escapeLiteral = { escapeChar : string ; charsToEscape : string } [ @@ js ] type escape = ( [ ` String of string | ` Literal of escapeLiteral ] [ @ js . union ] ) [ @@ js ] let escape_of_js js_val = matc...
module ShellExecutionOptions = struct include Interface . Make ( ) include [ % js : val executable : t -> string or_undefined [ @@ js . get ] val shellArgs : t -> string maybe_list [ @@ js . get ] val shellQuoting : t -> ShellQuotingOptions . t or_undefined [ @@ js . get ] val cw...
module ShellQuoting = struct type t = | Escape [ @ js 1 ] | Strong [ @ js 2 ] | Weak [ @ js 3 ] [ @@ js . enum ] [ @@ js ] end
module ShellQuotedString = struct include Interface . Make ( ) include [ % js : val value : t -> string [ @@ js . get ] val quoting : t -> ShellQuoting . t [ @@ js . get ] val create : value : string -> quoting : ShellQuoting . t -> t [ @@ js . builder ] ] end
module ShellExecution = struct include Class . Make ( ) type shellString = ( [ ` String of string | ` ShellQuotedString of ShellQuotedString . t ] [ @ js . union ] ) [ @@ js ] let shellString_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ %...
module ProcessExecutionOptions = struct include Interface . Make ( ) include [ % js : val cwd : t -> string or_undefined [ @@ js . get ] val env : t -> string Dict . t or_undefined [ @@ js . get ] val create : ? cwd : string -> ? env : string Dict . t -> unit -> t [ @@ js . ...
module ProcessExecution = struct include Class . Make ( ) include [ % js : val makeProcess : process : string -> ? options : ProcessExecutionOptions . t -> unit -> t [ @@ js . new " vscode . ProcessExecution " ] val makeProcessArgs : process : string -> args : string list -> ? opt...
module TaskDefinition = struct include Interface . Make ( ) include [ % js : val type_ : t -> string [ @@ js . get ] ] let get_attribute t = Ojs . get_prop_ascii ( [ % js . of : t ] t ) let set_attribute t = Ojs . set_prop_ascii ( [ % js . of : t ] t ) let create ~ t...
module CustomExecution = struct include Class . Make ( ) include [ % js : val make : callback : ( resolvedDefinition : TaskDefinition . t -> Pseudoterminal . t Promise . t ) -> t [ @@ js . new " vscode . CustomExecution " ] ] end
module RelativePattern = struct include Class . Make ( ) include [ % js : val base : t -> string [ @@ js . get ] val pattern : t -> string [ @@ js . get ] val make : base : ( [ ` WorkspaceFolder of WorkspaceFolder . t | ` Uri of Uri . t | ` String of string ] [ @ js ....
module GlobPattern = struct type t = ( [ ` String of string | ` RelativePattern of RelativePattern . t ] [ @ js . union ] ) [ @@ js ] let t_of_js js_val = match Ojs . type_of js_val with | " string " -> ` String ( [ % js . to : string ] js_val ) | _ -> ` Relative...
module DocumentFilter = struct include Interface . Make ( ) include [ % js : val language : t -> string or_undefined [ @@ js . get ] val scheme : t -> string or_undefined [ @@ js . get ] val pattern : t -> GlobPattern . t or_undefined [ @@ js . get ] val create : ? language : ...