Skip to content

Commit caf62e0

Browse files
authored
refactor: made functions optional until implementation [SPA-3218] (#2331)
1 parent eea583e commit caf62e0

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

lib/types/dialogs.types.ts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,43 @@ export interface DialogsAPI {
7474
max?: number
7575
mimetypeGroups?: string[]
7676
}) => Promise<T[] | null>
77-
/** Opens a dialog for selecting a single experience. */
78-
selectSingleExperience: <T = Object>(options?: {
77+
/** Opens a dialog for selecting a single experience.
78+
* This is intentionally optional, until the actual implemenation */
79+
selectSingleExperience?: <T = Object>(options?: {
7980
locale?: string
8081
contentTypes?: string[]
8182
}) => Promise<T | null>
82-
/** Opens a dialog for selecting multiple experiences. */
83-
selectMultipleExperiences: <T = Object>(options?: {
83+
/** Opens a dialog for selecting multiple experiences.
84+
* This is intentionally optional, until the actual implemenation */
85+
selectMultipleExperiences?: <T = Object>(options?: {
8486
locale?: string
8587
contentTypes?: string[]
8688
min?: number
8789
max?: number
8890
}) => Promise<T[] | null>
89-
/** Opens a dialog for selecting a single pattern. */
90-
selectSinglePattern: <T = Object>(options?: {
91+
/** Opens a dialog for selecting a single pattern.
92+
* This is intentionally optional, until the actual implemenation */
93+
selectSinglePattern?: <T = Object>(options?: {
9194
locale?: string
9295
contentTypes?: string[]
9396
}) => Promise<T | null>
94-
/** Opens a dialog for selecting multiple patterns. */
95-
selectMultiplePatterns: <T = Object>(options?: {
97+
/** Opens a dialog for selecting multiple patterns.
98+
* This is intentionally optional, until the actual implemenation */
99+
selectMultiplePatterns?: <T = Object>(options?: {
96100
locale?: string
97101
contentTypes?: string[]
98102
min?: number
99103
max?: number
100104
}) => Promise<T[] | null>
101-
/** Opens a dialog for selecting a single component definition. */
102-
selectSingleComponentDefinition: <T = Object>(options?: {
105+
/** Opens a dialog for selecting a single component definition.
106+
* This is intentionally optional, until the actual implemenation */
107+
selectSingleComponentDefinition?: <T = Object>(options?: {
103108
locale?: string
104109
contentTypes?: string[]
105110
}) => Promise<T | null>
106-
/** Opens a dialog for selecting multiple component definitions. */
107-
selectMultipleComponentDefinitions: <T = Object>(options?: {
111+
/** Opens a dialog for selecting multiple component definitions.
112+
* This is intentionally optional, until the actual implemenation */
113+
selectMultipleComponentDefinitions?: <T = Object>(options?: {
108114
locale?: string
109115
contentTypes?: string[]
110116
min?: number

0 commit comments

Comments
 (0)