nezuhub/simple / node_modules /@remotion /codemods /dist /get-node-path-remappings.d.ts
nezuhub's picture
download
raw
1.12 kB
import type { File, JSXOpeningElement } from '@babel/types';
import type { SequenceNodePathRemapping } from '@remotion/studio-shared';
import type { SequenceNodePath } from 'remotion';
type JsxNodeWithPath = {
node: JSXOpeningElement;
nodePath: SequenceNodePath;
parentNode: JSXOpeningElement | null;
};
export type CapturedJsxNodePath = JsxNodeWithPath & {
jsxName: string;
signature: string;
};
export declare const getJsxNodesWithPaths: (ast: File) => JsxNodeWithPath[];
export declare const captureJsxNodePaths: (ast: File) => CapturedJsxNodePath[];
export declare const collectJsxSubtree: (captured: CapturedJsxNodePath[], root: JSXOpeningElement) => Set<JSXOpeningElement>;
export declare const requireCapturedNodePath: (captured: CapturedJsxNodePath[], node: JSXOpeningElement) => SequenceNodePath;
export declare const getNodePathRemappings: ({ ast, captured, output, }: {
ast: File;
captured: CapturedJsxNodePath[];
output: string;
}) => {
nodePathRemappings: SequenceNodePathRemapping[];
finalNodePathByNode: Map<JSXOpeningElement, SequenceNodePath>;
};
export {};

Xet Storage Details

Size:
1.12 kB
·
Xet hash:
393e64bb71c355459f655fcfa0f0e1cd66cde8ed5688cb3f48e6d9cbeb693cf7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.