@omnia/fx-models 8.0.18-vnext → 8.0.19-vnext
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/Exposes.d.ts +2 -0
- package/Exposes.js +2 -0
- package/Func.d.ts +28 -0
- package/Func.js +2 -0
- package/MediaScalingSettings.d.ts +6 -0
- package/MediaScalingSettings.js +2 -0
- package/package.json +1 -1
package/Exposes.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export * from "./DateTimeZone";
|
|
|
95
95
|
export * from "./AzureAd";
|
|
96
96
|
export * from "./FilterEngineStyles";
|
|
97
97
|
export * from "./UserProperty";
|
|
98
|
+
export * from "./Func";
|
|
98
99
|
export * from "./ux";
|
|
99
100
|
export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
100
101
|
export * from "./admin";
|
|
@@ -121,3 +122,4 @@ export * from "./UserAgent";
|
|
|
121
122
|
export * from "./PromotedTagOptions";
|
|
122
123
|
export * from "./SharepointVideo";
|
|
123
124
|
export * from "./connected-tenants";
|
|
125
|
+
export * from "./MediaScalingSettings";
|
package/Exposes.js
CHANGED
|
@@ -101,6 +101,7 @@ tslib_1.__exportStar(require("./DateTimeZone"), exports);
|
|
|
101
101
|
tslib_1.__exportStar(require("./AzureAd"), exports);
|
|
102
102
|
tslib_1.__exportStar(require("./FilterEngineStyles"), exports);
|
|
103
103
|
tslib_1.__exportStar(require("./UserProperty"), exports);
|
|
104
|
+
tslib_1.__exportStar(require("./Func"), exports);
|
|
104
105
|
//************************************************************************************ */
|
|
105
106
|
// End of file exports
|
|
106
107
|
//************************************************************************************ */
|
|
@@ -136,3 +137,4 @@ tslib_1.__exportStar(require("./UserAgent"), exports);
|
|
|
136
137
|
tslib_1.__exportStar(require("./PromotedTagOptions"), exports);
|
|
137
138
|
tslib_1.__exportStar(require("./SharepointVideo"), exports);
|
|
138
139
|
tslib_1.__exportStar(require("./connected-tenants"), exports);
|
|
140
|
+
tslib_1.__exportStar(require("./MediaScalingSettings"), exports);
|
package/Func.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a function type with a variable number of arguments and a void return type.
|
|
3
|
+
*
|
|
4
|
+
* @typeParam T - Tuple type for the arguments. Defaults to an empty tuple (no arguments).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // Function with no arguments
|
|
8
|
+
* const noArgFunc: Func = () => {
|
|
9
|
+
* console.log("No arguments");
|
|
10
|
+
* };
|
|
11
|
+
*
|
|
12
|
+
* // Function with a single argument
|
|
13
|
+
* const singleArgFunc: Func<[string]> = (name: string) => {
|
|
14
|
+
* console.log(`Hello, ${name}`);
|
|
15
|
+
* };
|
|
16
|
+
*
|
|
17
|
+
* // Function with two arguments
|
|
18
|
+
* const twoArgsFunc: Func<[number, boolean]> = (num: number, flag: boolean) => {
|
|
19
|
+
* console.log(`Number: ${num}, Flag: ${flag}`);
|
|
20
|
+
* };
|
|
21
|
+
*
|
|
22
|
+
* // Function with a return type
|
|
23
|
+
* import { VNodeChild } from 'vue';
|
|
24
|
+
* interface SomeComponentProps {
|
|
25
|
+
* fixedContent?: Func<[(pelle: string) => VNodeChild]>;
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export type Func<T extends any[] = []> = (...args: T) => void;
|
package/Func.js
ADDED