create-expo-module 56.0.2 → 56.0.3
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/build/features.d.ts +11 -1
- package/build/index.js +4 -4
- package/build/templateUtils.d.ts +14 -0
- package/build/types.d.ts +8 -0
- package/package.json +4 -4
package/build/features.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
export declare const ALL_FEATURES: readonly ["Constant", "Function", "AsyncFunction", "Event", "View", "ViewEvent", "SharedObject"];
|
|
1
|
+
export declare const ALL_FEATURES: readonly ["Constant", "Function", "AsyncFunction", "Event", "View", "ViewEvent", "SharedObject", "SwiftUIView", "SwiftUIModifier", "ComposeView", "ComposeModifier"];
|
|
2
2
|
export type Feature = (typeof ALL_FEATURES)[number];
|
|
3
|
+
export declare function isSwiftUIFeature(feature: Feature): boolean;
|
|
4
|
+
export declare function isComposeFeature(feature: Feature): boolean;
|
|
5
|
+
export declare function usesSwiftUI(features: readonly Feature[]): boolean;
|
|
6
|
+
export declare function usesCompose(features: readonly Feature[]): boolean;
|
|
7
|
+
export declare function usesExpoUI(features: readonly Feature[]): boolean;
|
|
3
8
|
/**
|
|
4
9
|
* Validates, deduplicates, and applies ViewEvent→View auto-include.
|
|
5
10
|
*/
|
|
6
11
|
export declare function resolveFeatures(selected: string[], fullExample?: boolean): Feature[];
|
|
12
|
+
/**
|
|
13
|
+
* Drops features whose required platform was not selected (SwiftUI* require
|
|
14
|
+
* apple, Compose* require android) and warns about each drop.
|
|
15
|
+
*/
|
|
16
|
+
export declare function filterFeaturesByPlatforms(features: readonly Feature[], platforms: readonly string[]): Feature[];
|