@lynx-js/types 3.5.10-alpha.0 → 3.5.10-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # CHANGELOG
2
+ ## 3.5.10
3
+ - Fix list-type to avoid incompatible type error.
4
+
2
5
  ## 3.5.9
3
6
  - Update `list` and `list-item` typings.
4
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/types",
3
- "version": "3.5.10-alpha.0",
3
+ "version": "3.5.10-beta.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lynx",
@@ -36,19 +36,6 @@ export enum ListEventSource {
36
36
  SCROLL = 2,
37
37
  }
38
38
 
39
- /**
40
- * The layout type of list.
41
- * @Android
42
- * @iOS
43
- * @Harmony
44
- * @PC
45
- */
46
- export enum ListType {
47
- SINGLE = 'single',
48
- FLOW = 'flow',
49
- WATERFALL = 'waterfall',
50
- }
51
-
52
39
  export interface ListAttachedCell {
53
40
  /**
54
41
  * id of list item
@@ -414,13 +401,13 @@ export interface ListProps extends StandardProps {
414
401
 
415
402
  /**
416
403
  * layout type of the list
417
- * @defaultValue ListType.SINGLE
404
+ * @defaultValue 'single'
418
405
  * @Android
419
406
  * @iOS
420
407
  * @Harmony
421
408
  * @PC
422
409
  */
423
- 'list-type'?: ListType
410
+ 'list-type'?: 'single' | 'flow' | 'waterfall';
424
411
 
425
412
  /**
426
413
  * Whether to allow scrolling for a list.