Get rid of @string/@int for polyvars (#770) · rescript-react-native/rescript-react-native@6495093

Original file line numberDiff line numberDiff line change

@@ -19,6 +19,13 @@ external alert: (

1919

unit,

2020

) => unit = "alert"

2121
22+

type type_ = [

23+

| #default

24+

| #"plain-text"

25+

| #"secure-text"

26+

| #"login-password"

27+

]

28+
2229

@scope("Alert") @module("react-native")

2330

external prompt: (

2431

~title: string,

@@ -28,13 +35,7 @@ external prompt: (

2835

| #callback(string => unit)

2936

| #buttons(array<button>)

3037

]=?,

31-

~type_: @string

32-

[

33-

| #default

34-

| @as("plain-text") #plainText

35-

| @as("secure-text") #secureText

36-

| @as("login-password") #loginPassword

37-

]=?,

38+

~type_: type_=?,

3839

~defaultValue: string=?,

3940

~keyboardType: string=?,

4041

unit,