UNPKG

ember-source

Version:

A JavaScript framework for creating ambitious web applications

19 lines 878 B
/** @module @ember/component/template-only @public */ import { templateOnlyComponent as glimmerTemplateOnlyComponent } from '@glimmer/runtime'; // NOTES: // // 1. The generic here is for a *signature: a way to hang information for tools // like Glint which can provide typey checking for component templates using // information supplied via this generic. While it may appear useless on this // class definition and extension, it is used by external tools and should // not be removed. // 2. SAFETY: this cast is *throwing away* information that is not part of the // public API and replacing it with something which has the same calling // contract, but much less information (since we do not want to expose the // internal APIs like `moduleName` etc.). // prettier-ignore const templateOnly = glimmerTemplateOnlyComponent; export default templateOnly;