react-native-builder-bob
Version:
CLI to build JavaScript files for React Native libraries
71 lines (70 loc) • 4.15 kB
TypeScript
declare const module: {
readonly name: "\"module\"";
readonly options: import("arktype/internal/variants/object.ts").ObjectType<{
esm: import("arktype/internal/attributes.ts").Default<boolean, false>;
babelrc: import("arktype/internal/attributes.ts").Default<boolean, false>;
configFile: import("arktype/internal/attributes.ts").Default<string | boolean, false>;
sourceMaps: import("arktype/internal/attributes.ts").Default<boolean, true>;
copyFlow: import("arktype/internal/attributes.ts").Default<boolean, false>;
jsxRuntime: import("arktype/internal/attributes.ts").Default<"automatic" | "classic", "automatic">;
}, {}>;
};
declare const commonjs: {
readonly name: "\"commonjs\"";
readonly options: import("arktype/internal/variants/object.ts").ObjectType<{
esm: import("arktype/internal/attributes.ts").Default<boolean, false>;
babelrc: import("arktype/internal/attributes.ts").Default<boolean, false>;
configFile: import("arktype/internal/attributes.ts").Default<string | boolean, false>;
sourceMaps: import("arktype/internal/attributes.ts").Default<boolean, true>;
copyFlow: import("arktype/internal/attributes.ts").Default<boolean, false>;
jsxRuntime: import("arktype/internal/attributes.ts").Default<"automatic" | "classic", "automatic">;
}, {}>;
};
declare const typescript: {
readonly name: "\"typescript\"";
readonly options: import("arktype/internal/variants/object.ts").ObjectType<{
project?: string | undefined;
tsc?: string | undefined;
}, {}>;
};
declare const codegen: {
readonly name: "\"codegen\"";
};
declare const custom: {
readonly name: "\"custom\"";
readonly options: import("arktype/internal/variants/object.ts").ObjectType<{
script: string;
clean?: string | undefined;
}, {}>;
};
declare const target: import("arktype/internal/variants/string.ts").StringType<"module" | "commonjs" | "typescript" | "codegen" | "custom", {}>;
export declare const config: import("arktype/internal/variants/object.ts").ObjectType<{
source: string;
output: string;
targets: ("module" | "commonjs" | "typescript" | "codegen" | ["commonjs"] | ["module"] | ["typescript"] | ["codegen"] | ["module", {
esm: import("arktype/internal/attributes.ts").Default<boolean, false>;
babelrc: import("arktype/internal/attributes.ts").Default<boolean, false>;
configFile: import("arktype/internal/attributes.ts").Default<string | boolean, false>;
sourceMaps: import("arktype/internal/attributes.ts").Default<boolean, true>;
copyFlow: import("arktype/internal/attributes.ts").Default<boolean, false>;
jsxRuntime: import("arktype/internal/attributes.ts").Default<"automatic" | "classic", "automatic">;
}] | ["commonjs", {
esm: import("arktype/internal/attributes.ts").Default<boolean, false>;
babelrc: import("arktype/internal/attributes.ts").Default<boolean, false>;
configFile: import("arktype/internal/attributes.ts").Default<string | boolean, false>;
sourceMaps: import("arktype/internal/attributes.ts").Default<boolean, true>;
copyFlow: import("arktype/internal/attributes.ts").Default<boolean, false>;
jsxRuntime: import("arktype/internal/attributes.ts").Default<"automatic" | "classic", "automatic">;
}] | ["typescript", {
project?: string | undefined;
tsc?: string | undefined;
}] | ["custom", {
script: string;
clean?: string | undefined;
}])[];
exclude: import("arktype/internal/attributes.ts").Default<string, "**/{__tests__,__fixtures__,__mocks__}/**">;
}, {}>;
export type Config = typeof config.infer;
export type Target = typeof target.infer;
export type TargetOptions<T extends Target> = T extends typeof commonjs.name ? typeof commonjs.options.infer : T extends typeof module.name ? typeof module.options.infer : T extends typeof typescript.name ? typeof typescript.options.infer : T extends typeof custom.name ? typeof custom.options.infer : T extends typeof codegen.name ? undefined : never;
export {};