Fix type to satisfy Dialyzer

This commit is contained in:
Ulf Wiger 2022-07-13 11:35:40 +02:00
parent c4f7b7ac02
commit fde2e1194e

View File

@ -67,6 +67,8 @@
-type cf() :: mrdb:db_ref(). -type cf() :: mrdb:db_ref().
-type rpt() :: undefined | map().
-type req() :: {create_table, table(), properties()} -type req() :: {create_table, table(), properties()}
| {delete_table, table()} | {delete_table, table()}
| {load_table, table(), properties()} | {load_table, table(), properties()}
@ -75,7 +77,7 @@
| {add_aliases, [alias()]} | {add_aliases, [alias()]}
| {write_table_property, tabname(), tuple()} | {write_table_property, tabname(), tuple()}
| {remove_aliases, [alias()]} | {remove_aliases, [alias()]}
| {migrate, [{tabname(), map()}]} | {migrate, [{tabname(), map()}], rpt()}
| {prep_close, table()} | {prep_close, table()}
| {close_table, table()} | {close_table, table()}
| {clear_table, table() | cf() }. | {clear_table, table() | cf() }.