mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
27a54624c3
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
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
|
|
};
|
|
};
|