Skip to content

Commit 898d4cd

Browse files
authored
prettier
1 parent 5884a81 commit 898d4cd

File tree

1 file changed

+23
-21
lines changed
  • packages/client-search/src/types

1 file changed

+23
-21
lines changed

packages/client-search/src/types/Rule.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,27 +77,29 @@ export type ConsequenceQuery = {
7777
}>;
7878
};
7979

80-
export type ConsequencePromote = {
81-
/**
82-
* Unique identifier of the object to promote.
83-
*/
84-
readonly objectID: string;
85-
86-
/**
87-
* Promoted rank for the object (zero-based).
88-
*/
89-
readonly position: number;
90-
} | {
91-
/**
92-
* List of unique identifiers for the objects to promote.
93-
*/
94-
readonly objectIDs: string[];
95-
96-
/**
97-
* Promoted start rank for the objects (zero-based).
98-
*/
99-
readonly position: number;
100-
};
80+
export type ConsequencePromote =
81+
| {
82+
/**
83+
* Unique identifier of the object to promote.
84+
*/
85+
readonly objectID: string;
86+
87+
/**
88+
* Promoted rank for the object (zero-based).
89+
*/
90+
readonly position: number;
91+
}
92+
| {
93+
/**
94+
* List of unique identifiers for the objects to promote.
95+
*/
96+
readonly objectIDs: string[];
97+
98+
/**
99+
* Promoted start rank for the objects (zero-based).
100+
*/
101+
readonly position: number;
102+
};
101103

102104
export type ConsequenceParams = {
103105
/**

0 commit comments

Comments
 (0)