e30e75b5d4
Changesets / Create Version PR (push) Has been cancelled
Deploy Shadcn Registry / Deploy Production (push) Has been cancelled
Template Metrics / LOC + Bundle Size (push) Has been cancelled
Code Quality / Oxlint + Oxfmt (push) Has been cancelled
Code Quality / Template Sync (push) Has been cancelled
Code Quality / Build Changed Packages (push) Has been cancelled
Code Quality / Test Changed Packages (push) Has been cancelled
Deploy Expo Example / Deploy Production (push) Has been cancelled
Deploy Ink Example / Deploy Production (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.12) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Has been cancelled
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
type BabelTransformer = {
|
|
transform: (props: {
|
|
filename: string;
|
|
src: string;
|
|
options?: {
|
|
customTransformOptions?: {
|
|
environment?: string;
|
|
} | undefined;
|
|
} | undefined;
|
|
[key: string]: unknown;
|
|
}) => unknown;
|
|
getCacheKey?: (() => string) | undefined;
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
type MetroConfigLike = {
|
|
transformer?: {
|
|
babelTransformerPath?: string | undefined;
|
|
[key: string]: unknown;
|
|
} | undefined;
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
declare const UPSTREAM_TRANSFORMER_ENV = "AUI_METRO_UPSTREAM_TRANSFORMER";
|
|
|
|
declare function getCacheKey(): string;
|
|
|
|
declare namespace entry_root_exports {
|
|
export { MetroConfigLike, UPSTREAM_TRANSFORMER_ENV, withAui };
|
|
}
|
|
|
|
declare function transform(props: Parameters<BabelTransformer["transform"]>[0]): unknown;
|
|
|
|
declare namespace entry_transformer_exports {
|
|
export { getCacheKey, transform };
|
|
}
|
|
|
|
declare function withAui<T extends MetroConfigLike>(config: T): T;
|
|
|
|
export { entry_root_exports as entry_root, entry_transformer_exports as entry_transformer };
|