rename visit to visitSnapshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import snapshot, {
|
||||
serializeNodeWithId,
|
||||
transformAttribute,
|
||||
visit,
|
||||
visitSnapshot,
|
||||
} from './snapshot';
|
||||
import rebuild, { buildNodeWithSN, addHoverClass } from './rebuild';
|
||||
export * from './types';
|
||||
@@ -13,5 +13,5 @@ export {
|
||||
buildNodeWithSN,
|
||||
addHoverClass,
|
||||
transformAttribute,
|
||||
visit,
|
||||
visitSnapshot,
|
||||
};
|
||||
|
||||
@@ -425,7 +425,7 @@ function snapshot(
|
||||
];
|
||||
}
|
||||
|
||||
export function visit(
|
||||
export function visitSnapshot(
|
||||
node: serializedNodeWithId,
|
||||
onVisit: (node: serializedNodeWithId) => unknown,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user