Skip to content

Conversation

@brandenrodgers
Copy link
Contributor

Description and Context

Porting the hs cms convert-fields command to TS.

This relies on the small LDL PR here: HubSpot/hubspot-local-dev-lib#267

Screenshots

TODO

Who to Notify

camden11
camden11 previously approved these changes May 9, 2025
async function handler(
args: ArgumentsCamelCase<ConvertFieldsArgs>
): Promise<void> {
let stats: fs.Stats | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but you can use ?: instead of | undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what's going on with my TS config, but for some reason my IDE is telling me that it's not a valid syntax, even though it is. Tried restarting my ts server but no luck 🤷

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not valid syntax for assignments. Only types, function args, and types/interfaces.

Example

joe-yeager
joe-yeager previously approved these changes May 9, 2025
@brandenrodgers brandenrodgers changed the title Port cms convert-fields to TS Port cms convert-fields to TS (waiting for LDL release) May 9, 2025
@brandenrodgers brandenrodgers dismissed stale reviews from joe-yeager and camden11 via c34dd1c May 9, 2025 20:19
@joe-yeager joe-yeager self-requested a review May 9, 2025 20:28
@brandenrodgers brandenrodgers merged commit 909c98e into main May 9, 2025
1 check passed
@brandenrodgers brandenrodgers deleted the br/ts-convert-fields branch May 9, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants