Skip to content

Migrate from v1/full to v1#13696

Open
dylanjeffers wants to merge 2 commits intomainfrom
migrate-off-full
Open

Migrate from v1/full to v1#13696
dylanjeffers wants to merge 2 commits intomainfrom
migrate-off-full

Conversation

@dylanjeffers
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2026

⚠️ No Changeset found

Latest commit: 97c3e0d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

: null,
tracks: transformAndCleanList(
'tracks' in input ? (input.tracks ?? []) : [],
('tracks' in input ? (input.tracks ?? []) : []) as Parameters<
Copy link
Contributor

Choose a reason for hiding this comment

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

any way to eliminate the cast?


primeRelatedData({ related: response.related, queryClient })
primeRelatedData({
related: (response as { related?: full.Related }).related,
Copy link
Contributor

Choose a reason for hiding this comment

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

these casts feel scary


primeRelatedData({ related: commentsRes.related, queryClient })
primeRelatedData({
related: (commentsRes as { related?: full.Related }).related,
Copy link
Contributor

Choose a reason for hiding this comment

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

same here..

const list = Array.isArray(data) ? data : data != null ? [data] : []
const [transformedUser] = transformAndCleanList(
data ?? [],
list as import('@audius/sdk').User[],
Copy link
Contributor

Choose a reason for hiding this comment

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

async import + cast? is this necessary?

@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-nocheck - Custom API overrides use different param/return types than generated base
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't love having no-checks for full files

@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-nocheck - Custom API overrides use different param/return types than generated base
Copy link
Contributor

Choose a reason for hiding this comment

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

same

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.

2 participants