mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 05:02:17 -04:00
8 lines
161 B
TypeScript
8 lines
161 B
TypeScript
export const patchBlock = (meta: Record<string, unknown>) => {
|
|
const { blockLabel, ...rest } = meta;
|
|
return {
|
|
...rest,
|
|
blockType: blockLabel
|
|
};
|
|
};
|