angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/module-name.mts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
391 B
TypeScript
Raw Normal View History

/*!
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {HasModuleName} from '../entities/traits.mjs';
export function addModuleName<T>(entry: T, moduleName: string): T & HasModuleName {
return {
...entry,
moduleName,
};
}