mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:53:24 +00:00
add 'all' target, as alias for native
This commit is contained in:
@@ -7,6 +7,7 @@ export type Flags = (typeof flags)[keyof typeof flags];
|
||||
export const targets = {
|
||||
BROWSER: 'browser',
|
||||
NATIVE: 'native',
|
||||
ALL: 'all',
|
||||
} as const;
|
||||
|
||||
export type Targets = (typeof targets)[keyof typeof targets];
|
||||
@@ -22,6 +23,9 @@ export const targetToFeatures: Record<Targets, FeatureMap> = {
|
||||
native: {
|
||||
requires: [],
|
||||
},
|
||||
all: {
|
||||
requires: [],
|
||||
},
|
||||
} as const;
|
||||
|
||||
export function getTargetFeatures(target: Targets): FeatureMap {
|
||||
|
Reference in New Issue
Block a user