update inbox list
This commit is contained in:
22
vendor/scrivo/highlight.php/test/markup/reasonml/functions.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/markup/reasonml/functions.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/* This is a simple function */
|
||||
let greet = (name) => "Hello World";
|
||||
|
||||
let body = `Plain("uploaded " ++ cacheServiceConfig.desc ++ "configuration data into cache on S3");
|
||||
|
||||
let getCacheConfigByEnv =
|
||||
(
|
||||
environment: environment,
|
||||
cacheServiceConfig: Js.Dict.t(cachingServiceConfig)
|
||||
) =>
|
||||
switch (cacheServiceConfig) {
|
||||
| Some(config) => config
|
||||
| None =>
|
||||
raise(InvalidEnvironment("Caching Service Coinfiguration is missing"))
|
||||
};
|
||||
|
||||
let readCacheServiceConfigAndDecode = (configJson) =>
|
||||
switch (configJson |> Js.Json.decodeObject) {
|
||||
| None => raise(Json.Decode.DecodeError("Invalid Cache Config"))
|
||||
| Some(data) =>
|
||||
data |> Js.Dict.map((. json) => CachingServiceConfig.decode(json))
|
||||
};
|
||||
Reference in New Issue
Block a user