Skip to content

Commit 0380eb3

Browse files
committed
use nullable instead of option for external api in atd
1 parent 07184da commit 0380eb3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/config.atd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ type config = {
3434
shouldn't be checked into version control. *)
3535
type secrets = {
3636
(* GitHub personal access token, if repo access requires it *)
37-
?gh_token : string option;
37+
?gh_token : string nullable;
3838
(* GitHub webhook token to secure the webhook *)
39-
?gh_hook_token : string option;
39+
?gh_hook_token : string nullable;
4040
(* Slack bot token obtained via OAuth, enabling message posting to the workspace *)
41-
?slack_access_token : string option;
41+
?slack_access_token : string nullable;
4242
}

lib/slack.atd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ type post_message_req = {
6262

6363
type post_message_res = {
6464
ok: bool;
65-
?channel: string option;
66-
?error: string option;
65+
?channel: string nullable;
66+
?error: string nullable;
6767
}

0 commit comments

Comments
 (0)