Skip to content

Add extensions docs and start model fragments examples#10455

Open
RobbieTheWagner wants to merge 2 commits intomainfrom
model-fragments-docs
Open

Add extensions docs and start model fragments examples#10455
RobbieTheWagner wants to merge 2 commits intomainfrom
model-fragments-docs

Conversation

@RobbieTheWagner
Copy link
Copy Markdown
Contributor

If this PR updates API docs, preview them by:

  • install bun (if needed)
  • install volta and configure it for pnpm (if needed)
  • run pnpm install in the root (if needed)
  • run pnpm preview in the root

  • Read the full contributing documentation
  • If you do not have permission to add labels or run the test-suite in CI, a team member will do this for you.

@github-project-automation github-project-automation Bot moved this to needs triage in EmberData Jan 20, 2026
@runspired runspired added 🎯 canary PR is targeting canary (default) 🏷️ doc This PR adds/improves/or fixes documentation labels Jan 20, 2026
};
const isBuiltIn = builtInExtensions[extension.kind].includes(extension.name);

warn(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this would catch us registering our own, I suspect the assertion below is enough to catch duplicate

* like custom getters, computeds, and methods
*/
objectExtensions?: string[];
objectExtensions?: (BuiltInObjectExtension | string)[];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we don't automatically make these available ... but hinting at them could be useful. I wonder if its enough to link them in the comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was just trying to expose the possible ones people could use. We could make it generic I suppose and try to dynamically populate them somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎯 canary PR is targeting canary (default) 🏷️ doc This PR adds/improves/or fixes documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants