Skip to content

Commit a41fd55

Browse files
authored
Min and Max should have type Number (#30)
1 parent 3be53ea commit a41fd55

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

codegen/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const types = {
1616
"hidden": "Boolean",
1717
"itemScope": "Boolean",
1818
"loop": "Boolean",
19+
"max": "Number",
20+
"min": "Number",
1921
"multiple": "Boolean",
2022
"muted": "Boolean",
2123
"noValidate": "Boolean",
@@ -64,4 +66,3 @@ props.elements.html
6466
}
6567
`;
6668
}).forEach((x) => console.log(x.replace(/^\n\ {4}/, "").replace(/\n\ {4}/g, "\n")))
67-

generated-docs/React/Basic/DOM.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ img :: forall attrs attrs_. Union attrs attrs_ (SharedProps Props_img) => { | a
963963
#### `Props_input`
964964

965965
``` purescript
966-
type Props_input = (accept :: String, alt :: String, autoCapitalize :: String, autoCorrect :: String, autoSave :: String, checked :: Boolean, defaultChecked :: String, defaultValue :: String, disabled :: Boolean, form :: String, height :: String, list :: String, max :: String, min :: String, multiple :: Boolean, name :: String, onChange :: EventHandler, pattern :: String, placeholder :: String, required :: Boolean, results :: String, size :: Number, src :: String, step :: String, title :: String, "type" :: String, value :: String, width :: String)
966+
type Props_input = (accept :: String, alt :: String, autoCapitalize :: String, autoCorrect :: String, autoSave :: String, checked :: Boolean, defaultChecked :: String, defaultValue :: String, disabled :: Boolean, form :: String, height :: String, list :: String, max :: Number, min :: Number, multiple :: Boolean, name :: String, onChange :: EventHandler, pattern :: String, placeholder :: String, required :: Boolean, results :: String, size :: Number, src :: String, step :: String, title :: String, "type" :: String, value :: String, width :: String)
967967
```
968968

969969
#### `input`
@@ -1215,7 +1215,7 @@ meta :: forall attrs attrs_. Union attrs attrs_ (SharedProps Props_meta) => { |
12151215
#### `Props_meter`
12161216

12171217
``` purescript
1218-
type Props_meter = (children :: Array JSX, high :: String, low :: String, max :: String, min :: String, optimum :: String, value :: String)
1218+
type Props_meter = (children :: Array JSX, high :: String, low :: String, max :: Number, min :: Number, optimum :: String, value :: String)
12191219
```
12201220

12211221
#### `meter`
@@ -1425,7 +1425,7 @@ pre_ :: Array JSX -> JSX
14251425
#### `Props_progress`
14261426

14271427
``` purescript
1428-
type Props_progress = (children :: Array JSX, max :: String, value :: String)
1428+
type Props_progress = (children :: Array JSX, max :: Number, value :: String)
14291429
```
14301430

14311431
#### `progress`
@@ -2079,7 +2079,7 @@ var_ :: Array JSX -> JSX
20792079
#### `Props_video`
20802080

20812081
``` purescript
2082-
type Props_video = (children :: Array JSX, controls :: Boolean, height :: String, loop :: Boolean, muted :: Boolean, poster :: String, preload :: String, src :: String, width :: String)
2082+
type Props_video = (children :: Array JSX, controls :: Boolean, height :: String, loop :: Boolean, muted :: Boolean, playsInline :: Boolean, poster :: String, preload :: String, src :: String, width :: String)
20832083
```
20842084

20852085
#### `video`

src/React/Basic/DOM.purs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -908,8 +908,8 @@ type Props_input =
908908
, form :: String
909909
, height :: String
910910
, list :: String
911-
, max :: String
912-
, min :: String
911+
, max :: Number
912+
, min :: Number
913913
, multiple :: Boolean
914914
, name :: String
915915
, onChange :: EventHandler
@@ -1147,8 +1147,8 @@ type Props_meter =
11471147
( children :: Array JSX
11481148
, high :: String
11491149
, low :: String
1150-
, max :: String
1151-
, min :: String
1150+
, max :: Number
1151+
, min :: Number
11521152
, optimum :: String
11531153
, value :: String
11541154
)
@@ -1336,7 +1336,7 @@ pre_ children = pre { children }
13361336

13371337
type Props_progress =
13381338
( children :: Array JSX
1339-
, max :: String
1339+
, max :: Number
13401340
, value :: String
13411341
)
13421342

@@ -2147,6 +2147,7 @@ type Props_video =
21472147
, height :: String
21482148
, loop :: Boolean
21492149
, muted :: Boolean
2150+
, playsInline :: Boolean
21502151
, poster :: String
21512152
, preload :: String
21522153
, src :: String

0 commit comments

Comments
 (0)