@@ -2911,7 +2911,7 @@ declare module sequelize {
2911
2911
/**
2912
2912
* A list of attributes to select from the join model for belongsToMany relations
2913
2913
*/
2914
- attributes ?: Array < string > ;
2914
+ attributes ?: FindAttributeOptions ;
2915
2915
2916
2916
}
2917
2917
@@ -2945,7 +2945,7 @@ declare module sequelize {
2945
2945
/**
2946
2946
* A list of attributes to select from the child model
2947
2947
*/
2948
- attributes ?: Array < string > ;
2948
+ attributes ?: FindAttributeOptions ;
2949
2949
2950
2950
/**
2951
2951
* If true, converts to an inner join, which means that the parent model will only be loaded if it has any
@@ -2972,6 +2972,13 @@ declare module sequelize {
2972
2972
[ Model < any , any > , Model < any , any > , string , string ] ;
2973
2973
export type Order = string | fn | col | literal | OrderItem [ ] ;
2974
2974
2975
+ export type FindAttributeOptions =
2976
+ Array < string | [ string | fn , string ] > |
2977
+ {
2978
+ exclude ?: Array < string > ,
2979
+ include ?: Array < string | [ string | fn , string ] >
2980
+ } ;
2981
+
2975
2982
/**
2976
2983
* Options that are passed to any model creating a SELECT query
2977
2984
*
@@ -2989,12 +2996,7 @@ declare module sequelize {
2989
2996
* `Sequelize.literal`, `Sequelize.fn` and so on), and the second is the name you want the attribute to
2990
2997
* have in the returned instance
2991
2998
*/
2992
- attributes ?:
2993
- Array < string | [ string | fn , string ] > |
2994
- {
2995
- exclude ?: Array < string > ,
2996
- include ?: Array < string | [ string | fn , string ] >
2997
- } ;
2999
+ attributes ?: FindAttributeOptions ;
2998
3000
2999
3001
/**
3000
3002
* If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will
@@ -3085,7 +3087,7 @@ declare module sequelize {
3085
3087
/**
3086
3088
* Used in conjustion with `group`
3087
3089
*/
3088
- attributes ?: Array < string | [ string , string ] > ;
3090
+ attributes ?: FindAttributeOptions ;
3089
3091
3090
3092
/**
3091
3093
* GROUP BY in sql
0 commit comments